summaryrefslogtreecommitdiff
path: root/drivers/leds
diff options
context:
space:
mode:
authorJacek Anaszewski <jacek.anaszewski@gmail.com>2018-03-19 20:23:19 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-24 11:00:08 +0100
commitd1ef7ed6e586ef69b366719bc37f1009e1d7d5d4 (patch)
treeda37186c7036d50324d2419bfa6d968914b3eed3 /drivers/leds
parent2d07d7d7032c340564d84cedfba60a4d53355e95 (diff)
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/leds')
-rw-r--r--drivers/leds/led-core.c1
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;