Commit a2f01a89 authored by Matthew Garrett's avatar Matthew Garrett

apple-gmux: Fix up the suspend/resume patch

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.
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent a6c2390c
...@@ -88,7 +88,7 @@ static int gmux_update_status(struct backlight_device *bd) ...@@ -88,7 +88,7 @@ static int gmux_update_status(struct backlight_device *bd)
u32 brightness = bd->props.brightness; u32 brightness = bd->props.brightness;
if (bd->props.state & BL_CORE_SUSPENDED) if (bd->props.state & BL_CORE_SUSPENDED)
brightness = 0; return 0;
/* /*
* Older gmux versions require writing out lower bytes first then * Older gmux versions require writing out lower bytes first then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment