Pārlūkot izejas kodu

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>
Matthew Garrett 16 gadi atpakaļ
vecāks
revīzija
d822d5c273
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      drivers/platform/x86/eeepc-laptop.c

+ 1 - 1
drivers/platform/x86/eeepc-laptop.c

@@ -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;