summaryrefslogtreecommitdiffstats
path: root/drivers/staging/r8188eu/include/rtw_led.h
diff options
context:
space:
mode:
authorMartin Kaiser <martin@kaiser.cx>2021-12-26 20:55:49 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-28 17:12:34 +0100
commit517da66148f8da94d0a27761601c3b0fdd66c4fc (patch)
tree54b03b8f40d0802454e3ad363b9abb49aee8613c /drivers/staging/r8188eu/include/rtw_led.h
parent74752a36662cf9e7140e0bf5e24e88a7a38bcd78 (diff)
downloadlinux-517da66148f8da94d0a27761601c3b0fdd66c4fc.tar.bz2
staging: r8188eu: remove LedControlHandler
Export the function that other layers use for setting the led. Remove the function pointer and the macro to make the led control function configurable. This driver supports only a single configuration. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20211226195556.159471-15-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/include/rtw_led.h')
-rw-r--r--drivers/staging/r8188eu/include/rtw_led.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/staging/r8188eu/include/rtw_led.h b/drivers/staging/r8188eu/include/rtw_led.h
index 2672ab165784..5c7b33e70732 100644
--- a/drivers/staging/r8188eu/include/rtw_led.h
+++ b/drivers/staging/r8188eu/include/rtw_led.h
@@ -60,22 +60,14 @@ struct LED_871x {
struct delayed_work blink_work;
};
-void LedControl8188eu(struct adapter *padapter, enum LED_CTL_MODE LedAction);
-
struct led_priv{
struct LED_871x SwLed0;
bool bRegUseLed;
- void (*LedControlHandler)(struct adapter *padapter,
- enum LED_CTL_MODE LedAction);
};
-#define rtw_led_control(adapt, action) \
- do { \
- if ((adapt)->ledpriv.LedControlHandler) \
- (adapt)->ledpriv.LedControlHandler((adapt), (action)); \
- } while (0)
-
void rtl8188eu_InitSwLeds(struct adapter *padapter);
void rtl8188eu_DeInitSwLeds(struct adapter *padapter);
+void rtw_led_control(struct adapter *padapter, enum LED_CTL_MODE LedAction);
+
#endif /* __RTW_LED_H_ */