https://github.com/torvalds/linux
Revision e45906203d27296b47e56efc1219f9a200bfc2db authored by Lars-Peter Clausen on 27 November 2009, 05:17:38 UTC, committed by Richard Purdie on 17 December 2009, 11:42:34 UTC
Currently the driver leds-pwm doesn't set max_brightness for the led device
although it's platform data proides a maximum brightness. Instead it stores its
own private driver struct. The max_brightness defaults to 255 for led device if
it has not been set.
As a result any leds-pwm device with a different maximum brightness will show
incorrect behavior, as it is posible to either set a longer then period duty
time or not be able to switch the led to full brightness.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
1 parent 1998111
History
Tip revision: e45906203d27296b47e56efc1219f9a200bfc2db authored by Lars-Peter Clausen on 27 November 2009, 05:17:38 UTC
leds: leds-pwm: Set led_classdev max_brightness
Tip revision: e459062
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 958 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 159.9 KB
Makefile -rw-r--r-- 53.9 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top