Skip to content

Commit

Permalink
apple-gmux: Fix up the suspend/resume patch
Browse files Browse the repository at this point in the history
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: Matthew Garrett <mjg@redhat.com>
  • Loading branch information
Matthew Garrett committed Jun 1, 2012
1 parent a6c2390 commit a2f01a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/apple-gmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static int gmux_update_status(struct backlight_device *bd)
u32 brightness = bd->props.brightness;

if (bd->props.state & BL_CORE_SUSPENDED)
brightness = 0;
return 0;

/*
* Older gmux versions require writing out lower bytes first then
Expand Down

0 comments on commit a2f01a8

Please sign in to comment.