staging: r8188eu: remove SwLed1
The r8188eu driver does not use SwLed1. Calls from other layers to modify the led state end up in SwLedControlMode1, where SwLed0 is hard-coded. This patch removes the code to initialise and deinitialise SwLed1 and the SwLed1 struct itself. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20211207210537.23382-2-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d904512db6
commit
22e6a48467
@ -73,8 +73,6 @@ void rtl8188eu_InitSwLeds(struct adapter *padapter)
|
||||
pledpriv->LedControlHandler = LedControl8188eu;
|
||||
|
||||
InitLed871x(padapter, &pledpriv->SwLed0, LED_PIN_LED0);
|
||||
|
||||
InitLed871x(padapter, &pledpriv->SwLed1, LED_PIN_LED1);
|
||||
}
|
||||
|
||||
/* Description: */
|
||||
@ -84,5 +82,4 @@ void rtl8188eu_DeInitSwLeds(struct adapter *padapter)
|
||||
struct led_priv *ledpriv = &padapter->ledpriv;
|
||||
|
||||
DeInitLed871x(&ledpriv->SwLed0);
|
||||
DeInitLed871x(&ledpriv->SwLed1);
|
||||
}
|
||||
|
@ -95,7 +95,6 @@ void LedControl8188eu(struct adapter *padapter, enum LED_CTL_MODE LedAction);
|
||||
struct led_priv{
|
||||
/* add for led control */
|
||||
struct LED_871x SwLed0;
|
||||
struct LED_871x SwLed1;
|
||||
u8 bRegUseLed;
|
||||
void (*LedControlHandler)(struct adapter *padapter,
|
||||
enum LED_CTL_MODE LedAction);
|
||||
|
Loading…
x
Reference in New Issue
Block a user