From: Matthew Garrett Date: Tue, 14 Jul 2009 16:06:04 +0000 (+0100) Subject: backlight/eeepc-laptop: Update the backlight state when we change brightness X-Git-Tag: v2.6.32-rc1~11^2~2 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=d822d5c273683dc4bacd413953b11ad31513e997;p=linux.git 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 Signed-off-by: Richard Purdie --- diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c index 222ffb892f22..7b5ee494cdf7 100644 --- a/drivers/platform/x86/eeepc-laptop.c +++ b/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;