backlight: Allow drivers to update the core, and generate events on changes
commitfd283cad18a83cc3b2231e6787997bb72f976e6b
authorMatthew Garrett <mjg@redhat.com>
Fri, 4 Dec 2009 11:13:28 +0000 (4 09:13 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 4 Dec 2009 11:13:28 +0000 (4 09:13 -0200)
tree6dad64bca06f536730d0f406830de19832f83c29
parentfba96ae37cc2429073ef76f727bf98aca70ab621
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