Commit d822d5c2 authored by Matthew Garrett's avatar Matthew Garrett Committed by Richard Purdie

backlight/eeepc-laptop: Update the backlight state when we change brightness

Trigger a status update when the user hits a brightness key, allowing
userspace to present appropriate UI.
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
Signed-off-by: default avatarRichard Purdie <rpurdie@linux.intel.com>
parent 36342742
...@@ -642,7 +642,7 @@ static int notify_brn(void) ...@@ -642,7 +642,7 @@ static int notify_brn(void)
struct backlight_device *bd = eeepc_backlight_device; struct backlight_device *bd = eeepc_backlight_device;
if (bd) { if (bd) {
int old = bd->props.brightness; int old = bd->props.brightness;
bd->props.brightness = read_brightness(bd); backlight_force_update(bd, BACKLIGHT_UPDATE_HOTKEY);
return old; return old;
} }
return -1; return -1;
......
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