diff --git a/hal/usb_halinit.c b/hal/usb_halinit.c index 512d584..1c0c514 100644 --- a/hal/usb_halinit.c +++ b/hal/usb_halinit.c @@ -747,7 +747,6 @@ _InitBeaconMaxError( } - static void _InitRDGSetting( struct adapter *Adapter @@ -1772,7 +1771,6 @@ _ReadLEDSetting( { struct led_priv *pledpriv = &(Adapter->ledpriv); HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter); -#ifdef CONFIG_SW_LED pledpriv->bRegUseLed = true; switch(pHalData->CustomerID) @@ -1782,9 +1780,6 @@ _ReadLEDSetting( break; } pHalData->bLedOpenDrain = true;/* Support Open-drain arrangement for controlling the LED. Added by Roger, 2009.10.16. */ -#else /* HW LED */ - pledpriv->LedStrategy = HW_LED; -#endif /* CONFIG_SW_LED */ } static void @@ -3395,13 +3390,8 @@ void rtl8188eu_set_hal_ops(struct adapter * padapter) pHalFunc->init_recv_priv = &rtl8188eu_init_recv_priv; pHalFunc->free_recv_priv = &rtl8188eu_free_recv_priv; -#ifdef CONFIG_SW_LED pHalFunc->InitSwLeds = &rtl8188eu_InitSwLeds; pHalFunc->DeInitSwLeds = &rtl8188eu_DeInitSwLeds; -#else /* case of hw led or no led */ - pHalFunc->InitSwLeds = NULL; - pHalFunc->DeInitSwLeds = NULL; -#endif/* CONFIG_SW_LED */ pHalFunc->init_default_value = &rtl8188eu_init_default_value; pHalFunc->intf_chip_configure = &rtl8188eu_interface_configure; diff --git a/include/rtw_led.h b/include/rtw_led.h index 207409d..17f15ed 100644 --- a/include/rtw_led.h +++ b/include/rtw_led.h @@ -171,15 +171,11 @@ struct led_priv{ /* add for led controll */ }; -#ifdef CONFIG_SW_LED #define rtw_led_control(adapter, LedAction) \ do { \ if((adapter)->ledpriv.LedControlHandler) \ (adapter)->ledpriv.LedControlHandler((adapter), (LedAction)); \ } while(0) -#else /* CONFIG_SW_LED */ -#define rtw_led_control(adapter, LedAction) -#endif /* CONFIG_SW_LED */ void BlinkTimerCallback(void *data); void BlinkWorkItemCallback(struct work_struct *work);