staging: r8188eu: move SwLedOn and SwLedOff into rtw_led.c
authorMartin Kaiser <martin@kaiser.cx>
Sun, 26 Dec 2021 19:55:37 +0000 (20:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Dec 2021 16:12:33 +0000 (17:12 +0100)
commitb3505203320d6e74a3c83e39c63ef64b6fcd82ac
treeb86a1626c3b200102b3d08aaa32ec33b7845b140
parent9d36de31130542fc060f7cd17e72db670202c682
staging: r8188eu: move SwLedOn and SwLedOff into rtw_led.c

Move the low-level functions SwLedOn and SwLedOff from the hal layer
into rtw_led.c. This is the only place where they're used.

There's no need to go through the hal layer for a simple register access
if the driver supports only a single chipset.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20211226195556.159471-3-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_led.c
drivers/staging/r8188eu/hal/rtl8188eu_led.c
drivers/staging/r8188eu/include/rtw_led.h