aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2009-07-14 12:06:03 -0400
committerRichard Purdie <rpurdie@linux.intel.com>2009-09-21 16:04:19 -0400
commit36342742a3cbd52f7ca0582f23788c99c2ec8256 (patch)
tree33dd6dc43b8d3ef242a499a825ffd1b5969ea345 /drivers/acpi
parent325253a6b2de4bdfa9ef0e28b5df8a4a4fe2b677 (diff)
backlight/acpi: Update the backlight state when we change brightness
Trigger a status update when we change the brightness in the driver, thus 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/acpi')
-rw-r--r--drivers/acpi/video.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index 60ea984c84a0..5845398479fa 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -1960,6 +1960,10 @@ acpi_video_switch_brightness(struct acpi_video_device *device, int event)
1960 1960
1961 result = acpi_video_device_lcd_set_level(device, level_next); 1961 result = acpi_video_device_lcd_set_level(device, level_next);
1962 1962
1963 if (!result)
1964 backlight_force_update(device->backlight,
1965 BACKLIGHT_UPDATE_HOTKEY);
1966
1963out: 1967out:
1964 if (result) 1968 if (result)
1965 printk(KERN_ERR PREFIX "Failed to switch the brightness\n"); 1969 printk(KERN_ERR PREFIX "Failed to switch the brightness\n");