]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
backlight: Allow drivers to update the core, and generate events on changes
authorMatthew Garrett <mjg@redhat.com>
Tue, 14 Jul 2009 16:06:02 +0000 (17:06 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Mon, 21 Sep 2009 20:03:58 +0000 (21:03 +0100)
commit325253a6b2de4bdfa9ef0e28b5df8a4a4fe2b677
treea9fff6fda2ac9f36b494779e76e66222ce540b28
parent0f7e7273803aa03ad7a0e210461a3db9d35e7abb
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>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
drivers/video/backlight/backlight.c
include/linux/backlight.h