Skip to content

Commit

Permalink
backlight/eeepc-laptop: Update the backlight state when we change bri…
Browse files Browse the repository at this point in the history
…ghtness

Trigger a status update when the user hits a brightness key, allowing
userspace to present appropriate UI.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
  • Loading branch information
Matthew Garrett authored and Richard Purdie committed Sep 21, 2009
1 parent 3634274 commit d822d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/eeepc-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ static int notify_brn(void)
struct backlight_device *bd = eeepc_backlight_device;
if (bd) {
int old = bd->props.brightness;
bd->props.brightness = read_brightness(bd);
backlight_force_update(bd, BACKLIGHT_UPDATE_HOTKEY);
return old;
}
return -1;
Expand Down

0 comments on commit d822d5c

Please sign in to comment.