1
0

087-Revert-led-core-Fix-brightness-setting-when-setting-.patch 978 B

12345678910111213141516171819202122232425262728
  1. From 4b98deaa353d8f7af3f7543d0b59497fe1275599 Mon Sep 17 00:00:00 2001
  2. Message-Id: <4b98deaa353d8f7af3f7543d0b59497fe1275599.1520544136.git.mschiffer@universe-factory.net>
  3. From: Matthias Schiffer <mschiffer@universe-factory.net>
  4. Date: Thu, 8 Mar 2018 22:22:08 +0100
  5. Subject: [PATCH] Revert "led: core: Fix brightness setting when setting
  6. delay_off=0"
  7. This reverts commit 20ac8f72514b3af8b62c520d55656ded865eff00.
  8. ---
  9. drivers/leds/led-core.c | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. diff --git a/drivers/leds/led-core.c b/drivers/leds/led-core.c
  12. index 92b6798ef5b3..c1c3af089634 100644
  13. --- a/drivers/leds/led-core.c
  14. +++ b/drivers/leds/led-core.c
  15. @@ -149,7 +149,7 @@ void led_blink_set(struct led_classdev *led_cdev,
  16. unsigned long *delay_on,
  17. unsigned long *delay_off)
  18. {
  19. - led_stop_software_blink(led_cdev);
  20. + del_timer_sync(&led_cdev->blink_timer);
  21. led_cdev->flags &= ~LED_BLINK_ONESHOT;
  22. led_cdev->flags &= ~LED_BLINK_ONESHOT_STOP;
  23. --
  24. 2.16.2