diff options
author | Florian Vaussard <florian.vaussard@epfl.ch> | 2013-01-28 15:00:59 +0100 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2013-04-01 20:04:50 +0200 |
commit | c971ff185f6443e834686f140ba6d6e341ced600 (patch) | |
tree | fef36e139acb29b2797c94861ee763817440b8dd /drivers/leds/leds-ns2.c | |
parent | leds: lp55xx: fix the sysfs read operation (diff) | |
download | linux-c971ff185f6443e834686f140ba6d6e341ced600.tar.xz linux-c971ff185f6443e834686f140ba6d6e341ced600.zip |
leds: leds-pwm: Defer led_pwm_set() if PWM can sleep
Call to led_pwm_set() can happen inside atomic context, like triggers.
If the PWM call can sleep, defer using a worker.
Signed-off-by: Florian Vaussard <florian.vaussard@epfl.ch>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds/leds-ns2.c')
0 files changed, 0 insertions, 0 deletions