backlight: Allow drivers to update the core, and generate events on changes
commit4692069f998b1c05b529a59cbafcf650c58c60a2
authorMatthew Garrett <mjg@redhat.com>
Sat, 14 Nov 2009 02:52:26 +0000 (14 00:52 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 14 Nov 2009 02:52:26 +0000 (14 00:52 -0200)
treedbc3099a853a717a2a5537950e612c20959f304d
parent043f51449ec56c630f26e42bb572f7b5fc1599ac
backlight: Allow drivers to update the core, and generate events on changes

Certain hardware will send us events when the backlight brightness
changes. Add a function to update the value in the core, and
additionally send a uevent so that userspace can pop up appropriate
UI. The uevents are flagged depending on whether the update originated
in the kernel or from userspace, making it easier to only display UI
at the appropriate time.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/video/backlight/backlight.c
include/linux/backlight.h