kernel-ark/drivers
Richard Purdie 6ca017658b [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>
2006-03-31 12:19:00 -08:00
..
acorn
acpi [PATCH] Don't pass boot parameters to argv_init[] 2006-03-31 12:18:53 -08:00
amba
atm [PATCH] Replace 0xff.. with correct DMA_xBIT_MASK 2006-03-28 09:16:07 -08:00
base [PATCH] Notifier chain update: API changes 2006-03-27 08:44:50 -08:00
block [PATCH] Don't pass boot parameters to argv_init[] 2006-03-31 12:18:53 -08:00
bluetooth
cdrom
char [PATCH] vt: add TIOCL_GETKMSGREDIRECT 2006-03-31 12:18:56 -08:00
connector
cpufreq [CPUFREQ] cpufreq_conservative: keep ignore_nice_load and freq_step values when reselected 2006-03-28 12:20:18 -05:00
crypto
dio
edac [PATCH] edac_752x needs CONFIG_HOTPLUG 2006-03-31 12:18:54 -08:00
eisa
fc4
firmware [PATCH] Notifier chain update: API changes 2006-03-27 08:44:50 -08:00
hwmon
i2c [PATCH] RTC subsystem: I2C cleanup 2006-03-27 08:44:51 -08:00
ide [PATCH] LED: Add IDE disk activity LED trigger 2006-03-31 12:18:57 -08:00
ieee1394 Merge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc 2006-03-29 11:28:30 -08:00
infiniband IB/mad: RMPP support for additional classes 2006-03-30 07:19:51 -08:00
input [PARISC] Fix double free when removing HIL drivers 2006-03-30 17:48:59 +00:00
isdn [PATCH] ISDN: fix a few memory leaks in sc_ioctl() 2006-03-31 12:18:56 -08:00
leds [PATCH] LED: Add IDE disk activity LED trigger 2006-03-31 12:18:57 -08:00
macintosh Merge ../linux-2.6 2006-03-29 13:24:50 +11:00
mca
md [PATCH] md: Convert reconfig_sem to reconfig_mutex 2006-03-27 08:45:03 -08:00
media [PATCH] Don't pass boot parameters to argv_init[] 2006-03-31 12:18:53 -08:00
message [PATCH] mark f_ops const in the inode 2006-03-28 09:16:05 -08:00
mfd
misc [PATCH] Make most file operations structs in fs/ const 2006-03-28 09:16:06 -08:00
mmc
mtd [PATCH] LED: add NAND MTD activity LED trigger 2006-03-31 12:18:57 -08:00
net [PATCH] 3c59x: fix networking for 10base2 NICs 2006-03-31 12:18:55 -08:00
nubus
oprofile [PATCH] mark f_ops const in the inode 2006-03-28 09:16:05 -08:00
parisc [PARISC] I/O-Space must be ioremap_nocache()'d 2006-03-30 17:48:42 +00:00
parport [PATCH] pnp: parport: adjust pnp_register_driver signature 2006-03-27 08:44:52 -08:00
pci
pcmcia [PATCH] Don't pass boot parameters to argv_init[] 2006-03-31 12:18:53 -08:00
pnp [PATCH] pnp: PNP: adjust pnp_register_driver signature 2006-03-27 08:44:53 -08:00
rapidio
rtc [PATCH] RTC subsystem: M48T86 driver 2006-03-27 08:44:52 -08:00
s390 Merge git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial 2006-03-26 09:41:18 -08:00
sbus
scsi [PATCH] Don't pass boot parameters to argv_init[] 2006-03-31 12:18:53 -08:00
serial [PARISC] I/O-Space must be ioremap_nocache()'d 2006-03-30 17:48:42 +00:00
sh
sn
spi
tc
telephony [PATCH] mark f_ops const in the inode 2006-03-28 09:16:05 -08:00
usb Merge branch 'upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 2006-03-29 17:30:19 -05:00
video [PATCH] backlight: Backlight Class Improvements 2006-03-31 12:19:00 -08:00
w1
zorro
Kconfig [PATCH] LED: add LED class 2006-03-31 12:18:56 -08:00
Makefile [PATCH] LED: add LED class 2006-03-31 12:18:56 -08:00