projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
325253a
)
backlight/acpi: Update the backlight state when we change brightness
author
Matthew Garrett
<mjg@redhat.com>
Tue, 14 Jul 2009 16:06:03 +0000
(17:06 +0100)
committer
Richard Purdie
<rpurdie@linux.intel.com>
Mon, 21 Sep 2009 20:04:19 +0000
(21:04 +0100)
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>
drivers/acpi/video.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/video.c
b/drivers/acpi/video.c
index 60ea984c84a02c651b606d6d42aa4b3610c21882..5845398479fa522704736f2750f6a7c496cd1f66 100644
(file)
--- 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)
result = acpi_video_device_lcd_set_level(device, level_next);
+ if (!result)
+ backlight_force_update(device->backlight,
+ BACKLIGHT_UPDATE_HOTKEY);
+
out:
if (result)
printk(KERN_ERR PREFIX "Failed to switch the brightness\n");