diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2006-03-31 02:31:49 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-31 12:19:00 -0800 |
commit | 6ca017658b1f902c9bba2cc1017e301581f7728d (patch) | |
tree | 9180b3923d4f6ef09c11d7f7386024f391508759 /usr | |
parent | 9b0e1c5dd2941aec566047e10a5cc929ca7f7d4f (diff) | |
download | linux-6ca017658b1f902c9bba2cc1017e301581f7728d.tar.gz linux-6ca017658b1f902c9bba2cc1017e301581f7728d.tar.bz2 linux-6ca017658b1f902c9bba2cc1017e301581f7728d.zip |
[PATCH] backlight: Backlight Class Improvements
Backlight class attributes are currently easy to implement incorrectly.
Moving certain handling into the backlight core prevents this whilst at the
same time makes the drivers simpler and consistent. The following changes are
included:
The brightness attribute only sets and reads the brightness variable in the
backlight_properties structure.
The power attribute only sets and reads the power variable in the
backlight_properties structure.
Any framebuffer blanking events change a variable fb_blank in the
backlight_properties structure.
The backlight driver has only two functions to implement. One function is
called when any of the above properties change (to update the backlight
brightness), the second is called to return the current backlight brightness
value. A new attribute "actual_brightness" is added to return this brightness
as determined by the driver having combined all the above factors (and any
driver/device specific factors).
Additionally, the backlight core takes care of checking the maximum brightness
is not exceeded and of turning off the backlight before device removal.
The corgi backlight driver is updated to reflect these changes.
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions