]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
leds: allow led-drivers to use a variable range of brightness values
authorGuennadi Liakhovetski <lg@denx.de>
Sat, 10 Jan 2009 18:54:39 +0000 (18:54 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Mon, 6 Apr 2009 15:06:25 +0000 (16:06 +0100)
commit1bd465e6b0e2b559db47420fea686507a01cfab0
tree623c7a906e4ce117873a33f5b1717e150d5f9e59
parenta7d878af94b223013a48078e0c8c0a654c24a057
leds: allow led-drivers to use a variable range of brightness values

This patch allows drivers to override the default maximum brightness value
of 255.  We take care to preserve backwards-compatibility as much as
possible, so that user-space ABI doesn't change for existing drivers.
LED trigger code has also been updated to use the per-LED maximum.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
drivers/leds/led-class.c
drivers/leds/leds.h
drivers/leds/ledtrig-default-on.c
drivers/leds/ledtrig-heartbeat.c
drivers/leds/ledtrig-ide-disk.c
drivers/leds/ledtrig-timer.c
include/linux/leds.h