[PATCH 00/21] staging: r8188eu: simplify the led layer

From: Martin Kaiser
Date: Sun Dec 26 2021 - 14:56:22 EST


This patch set starts to clean up the led handling.

Apart from removing unused code and defines, it merges the led code
from the hal layer with the led handling in rtw_led.c and tries to
simplify the code for blinking.

Martin Kaiser (21):
staging: r8188eu: switch the led off during deinit
staging: r8188eu: move SwLedOn and SwLedOff into rtw_led.c
staging: r8188eu: move (de)init functions from hal to rtw_led
staging: r8188eu: merge InitLed871x and rtl8188eu_InitSwLeds
staging: r8188eu: merge DeInitLed871x and rtl8188eu_DeInitSwLeds
staging: r8188eu: make ResetLedStatus static
staging: r8188eu: clean up the blink worker code
staging: r8188eu: clean up blinking macros
staging: r8188eu: remove unused blink mode defines
staging: r8188eu: bLedStartToLinkBlinkInProgress is set but not used
staging: r8188eu: make blink interval defines internal
staging: r8188eu: use bool for boolean values
staging: r8188eu: remove obsolete comments
staging: r8188eu: remove LedControlHandler
staging: r8188eu: LED_CTL_POWER_ON is not used
staging: r8188eu: LED_CTL_START_WPS_BOTTON is not used
staging: r8188eu: remove bStopBlinking
staging: r8188eu: summarize some BlinkingLedState
staging: r8188eu: merge blink_work and SwLedBlink1
staging: r8188eu: merge rtw_led_control and SwLedControlMode1
staging: r8188eu: rfoff_reason is never initialised

drivers/staging/r8188eu/Makefile | 1 -
drivers/staging/r8188eu/core/rtw_led.c | 188 +++++++++---------
drivers/staging/r8188eu/hal/rtl8188eu_led.c | 62 ------
drivers/staging/r8188eu/hal/usb_halinit.c | 1 -
drivers/staging/r8188eu/include/hal_intf.h | 6 -
.../staging/r8188eu/include/rtl8188e_led.h | 16 --
drivers/staging/r8188eu/include/rtw_led.h | 68 ++-----
drivers/staging/r8188eu/include/rtw_pwrctrl.h | 1 -
drivers/staging/r8188eu/os_dep/ioctl_linux.c | 2 +-
drivers/staging/r8188eu/os_dep/os_intfs.c | 2 +-
10 files changed, 103 insertions(+), 244 deletions(-)
delete mode 100644 drivers/staging/r8188eu/hal/rtl8188eu_led.c
delete mode 100644 drivers/staging/r8188eu/include/rtl8188e_led.h

--
2.30.2