I incorporated the wrong version of the suspend/resume patch for gmux, and so lost David Woodhouse's fix to leave the backlight level unchanged over suspend/resume. This fixes it up to v2.
Unified · Split
| @@ -88,7 +88,7 @@ static int gmux_update_status(struct backlight_device *bd) · 87 unmodified lines | ||
| 88 | 88 | u32 brightness = bd->props.brightness; |
| 89 | 89 | |
| 90 | 90 | if (bd->props.state & BL_CORE_SUSPENDED) |
| 91 | − brightness = 0; | |
| 91 | + return 0; | |
| 92 | 92 | |
| 93 | 93 | /* |
| 94 | 94 | * Older gmux versions require writing out lower bytes first then |