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)
commitd25cb8382a042ec21d725e3d819c259de20666d4
tree90d8808488c46b971b365670fb82034f8439e383
parentcbdeb787905d76d91c932cc69302c1be5d2306d9
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