Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;