backlight: Allow drivers to update the core, and generate events on changes
commitf480319df9d5cf261244ab4c967dc38cdf1f36f9
authorMatthew Garrett <mjg@redhat.com>
Sat, 14 Nov 2009 02:45:44 +0000 (14 00:45 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 14 Nov 2009 02:45:44 +0000 (14 00:45 -0200)
treee1deb4bbdac1d1e8019939f3519cd13fd1eebc20
parentcc713d35e6778a64291516ee546f46e1f814070a
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