aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-ktd2692.c
diff options
context:
space:
mode:
authorMarkus Hofstaetter <markus.hofstaetter@ait.ac.at>2015-11-11 12:40:29 +0100
committerJacek Anaszewski <j.anaszewski@samsung.com>2016-01-04 09:57:36 +0100
commitf16703360da7731a057df2ffa902306819c22398 (patch)
treebad958970dbfa9c83d2f079304efd8822ffed893 /drivers/leds/leds-ktd2692.c
parentleds: triggers: oneshot: fix module license specification (diff)
downloadlinux-dev-f16703360da7731a057df2ffa902306819c22398.tar.xz
linux-dev-f16703360da7731a057df2ffa902306819c22398.zip
leds: call led_pwm_set() in leds-pwm to enforce default LED_OFF
Some PWMs are disabled by default or the default pin setting does not match the LED_OFF state (e.g., active-low leds). Hence, the driver may end up reporting 0 brightness, but the leds are actually on using full brightness, because it never enforces its default configuration. So enforce it by calling led_pwm_set() after successfully registering the device. Tested on a Phytec phyFLEX i.MX6Q board based on kernel v3.19.5. Signed-off-by: Markus Hofstaetter <markus.hofstaetter@ait.ac.at> Tested-by: Markus Hofstaetter <markus.hofstaetter@ait.ac.at> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Diffstat (limited to 'drivers/leds/leds-ktd2692.c')
0 files changed, 0 insertions, 0 deletions