diff options
author | Jacek Anaszewski <jacek.anaszewski@gmail.com> | 2018-03-19 22:23:19 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-24 13:00:08 +0300 |
commit | d1ef7ed6e586ef69b366719bc37f1009e1d7d5d4 (patch) | |
tree | da37186c7036d50324d2419bfa6d968914b3eed3 /drivers | |
parent | 2d07d7d7032c340564d84cedfba60a4d53355e95 (diff) | |
download | linux-d1ef7ed6e586ef69b366719bc37f1009e1d7d5d4.tar.xz |
led: core: Clear LED_BLINK_SW flag in led_blink_set()
[Only needed in 4.9.y due to other fixes in mainline - gregkh]
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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/leds/led-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/leds/led-core.c b/drivers/leds/led-core.c index 3bce44893021..454ed4dc6ec1 100644 --- a/drivers/leds/led-core.c +++ b/drivers/leds/led-core.c @@ -188,6 +188,7 @@ void led_blink_set(struct led_classdev *led_cdev, { del_timer_sync(&led_cdev->blink_timer); + led_cdev->flags &= ~LED_BLINK_SW; led_cdev->flags &= ~LED_BLINK_ONESHOT; led_cdev->flags &= ~LED_BLINK_ONESHOT_STOP; |