]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: simplify the LED_CTL_POWER_OFF case
authorMartin Kaiser <martin@kaiser.cx>
Mon, 5 Sep 2022 20:01:40 +0000 (22:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Sep 2022 07:52:08 +0000 (09:52 +0200)
commitdc287c9297510b7dd2581d53786b591b7ecd2bdb
tree90d8808488c46b971b365670fb82034f8439e383
parentaf48c8d89a49deb6ea528f81152bef0ce75a6023
staging: r8188eu: simplify the LED_CTL_POWER_OFF case

When a caller of rtw_led_control requests that the led be switched off,
we should cancel the blink worker and set all blinking state variables
to false. This does not depend on the current blinking state.

Tested-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220905200146.82259-2-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_led.c