diff options
author | Guennadi Liakhovetski <lg@denx.de> | 2009-01-10 19:54:39 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-04-06 17:06:25 +0200 |
commit | 1bd465e6b0e2b559db47420fea686507a01cfab0 (patch) | |
tree | 623c7a906e4ce117873a33f5b1717e150d5f9e59 /drivers/leds/ledtrig-default-on.c | |
parent | leds: Add openfirmware platform device support (diff) | |
download | linux-1bd465e6b0e2b559db47420fea686507a01cfab0.tar.xz linux-1bd465e6b0e2b559db47420fea686507a01cfab0.zip |
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>
Diffstat (limited to 'drivers/leds/ledtrig-default-on.c')
-rw-r--r-- | drivers/leds/ledtrig-default-on.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/ledtrig-default-on.c b/drivers/leds/ledtrig-default-on.c index 92995e40cfa4..a4ef54b9d508 100644 --- a/drivers/leds/ledtrig-default-on.c +++ b/drivers/leds/ledtrig-default-on.c @@ -19,7 +19,7 @@ static void defon_trig_activate(struct led_classdev *led_cdev) { - led_set_brightness(led_cdev, LED_FULL); + led_set_brightness(led_cdev, led_cdev->max_brightness); } static struct led_trigger defon_led_trigger = { |