backlight: Allow drivers to update the core, and generate events on changes
commit84452dcf7b599e14679474b846a2a8790c7ab4c8
authorMatthew Garrett <mjg@redhat.com>
Wed, 7 Jul 2010 02:06:35 +0000 (6 23:06 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Wed, 7 Jul 2010 02:06:35 +0000 (6 23:06 -0300)
tree83ac3a6eaa2067e70affe9ebb625534732c9695e
parent7f862d3364b36ec75c7c26b027c289df32e6adcb
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