]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:19:43 +0000 (10:19 +0100)
commit20ac8f72514b3af8b62c520d55656ded865eff00
treef135a5b4781f64b68eb0a7dc5c12769db5cb594a
parenta4bd8a5a0c27b22b77076d6699b8fd9a4ddcea92
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