aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2009-07-14 17:06:04 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-09-21 21:05:02 +0100
commitd822d5c273683dc4bacd413953b11ad31513e997 (patch)
treec39c8a790ff7f0bedbd7564a3d1e3ebade3da8d3 /drivers/platform
parent36342742a3cbd52f7ca0582f23788c99c2ec8256 (diff)
downloadkernel_goldelico_gta04-d822d5c273683dc4bacd413953b11ad31513e997.zip
kernel_goldelico_gta04-d822d5c273683dc4bacd413953b11ad31513e997.tar.gz
kernel_goldelico_gta04-d822d5c273683dc4bacd413953b11ad31513e997.tar.bz2
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>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/eeepc-laptop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c
index 222ffb89..7b5ee49 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;