backlight/eeepc-laptop: Update the backlight state when we change brightness
authorMatthew Garrett <mjg@redhat.com>
Tue, 14 Jul 2009 16:06:04 +0000 (17:06 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Mon, 21 Sep 2009 20:05:02 +0000 (21:05 +0100)
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>
drivers/platform/x86/eeepc-laptop.c

index 222ffb892f2299852d7e3d77dc109bdd412ca6e5..7b5ee494cdf75510855219e39c9acafc219de293 100644 (file)
@@ -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;