mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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: Matthew Garrett <mjg@redhat.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
parent
36342742a3
commit
d822d5c273
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue