OSDN Git Service

led: core: Fix brightness setting when setting delay_off=0
authorMatthieu CASTET <matthieu.castet@parrot.com>
Tue, 12 Dec 2017 10:10:44 +0000 (11:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Mar 2018 09:24:31 +0000 (10:24 +0100)
commitc2acc885913807ce4f6d21353d4d7525eaeb2c01
tree2082fc4ca218c524ffb665211fe60094aeb766f1
parent6b800ce9ee8452abfbbfe66bf9cdd13f4655e9a3
led: core: Fix brightness setting when setting delay_off=0

[ Upstream commit 2b83ff96f51d0b039c4561b9f95c824d7bddb85c ]

With the current code, the following sequence won't work :
echo timer > trigger

echo 0 >  delay_off
* at this point we call
** led_delay_off_store
** led_blink_set
drivers/leds/led-core.c