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:23:24 +0000 (10:23 +0100)
commit86b9fa2190907f4f550d9d6bf490c5f89ca33836
treee4b8462f873c96937fd1f722f5df49df3bbb7a56
parentaf60c3822a721f9c2bf511ed1234e59ee4135010
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