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