mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 16:07:17 -04:00
staging: rtl8188eu: Remove _ReadLEDSetting() function.
_ReadLEDSetting() doesn't read led settings this function actually initialize member variables of struct led_priv, we should do that inside rtl8188eu_InitSwLeds(). Signed-off-by: navin patidar <navin.patidar@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
105dec7db1
commit
74391e12be
@@ -92,8 +92,12 @@ void SwLedOff(struct adapter *padapter, struct LED_871x *pLed)
|
||||
void rtl8188eu_InitSwLeds(struct adapter *padapter)
|
||||
{
|
||||
struct led_priv *pledpriv = &(padapter->ledpriv);
|
||||
struct hal_data_8188e *haldata = GET_HAL_DATA(padapter);
|
||||
|
||||
pledpriv->bRegUseLed = true;
|
||||
pledpriv->LedStrategy = SW_LED_MODE1;
|
||||
pledpriv->LedControlHandler = LedControl8188eu;
|
||||
haldata->bLedOpenDrain = true;
|
||||
|
||||
InitLed871x(padapter, &(pledpriv->SwLed0), LED_PIN_LED0);
|
||||
|
||||
|
||||
@@ -1129,16 +1129,6 @@ static unsigned int rtl8188eu_inirp_deinit(struct adapter *Adapter)
|
||||
/* EEPROM/EFUSE Content Parsing */
|
||||
/* */
|
||||
/* */
|
||||
static void _ReadLEDSetting(struct adapter *Adapter, u8 *PROMContent, bool AutoloadFail)
|
||||
{
|
||||
struct led_priv *pledpriv = &(Adapter->ledpriv);
|
||||
struct hal_data_8188e *haldata = GET_HAL_DATA(Adapter);
|
||||
|
||||
pledpriv->bRegUseLed = true;
|
||||
pledpriv->LedStrategy = SW_LED_MODE1;
|
||||
haldata->bLedOpenDrain = true;/* Support Open-drain arrangement for controlling the LED. */
|
||||
}
|
||||
|
||||
static void Hal_EfuseParsePIDVID_8188EU(struct adapter *adapt, u8 *hwinfo, bool AutoLoadFail)
|
||||
{
|
||||
struct hal_data_8188e *haldata = GET_HAL_DATA(adapt);
|
||||
@@ -1215,8 +1205,6 @@ readAdapterInfo_8188EU(
|
||||
/* */
|
||||
Hal_InitChannelPlan(adapt);
|
||||
Hal_CustomizeByCustomerID_8188EU(adapt);
|
||||
|
||||
_ReadLEDSetting(adapt, eeprom->efuse_eeprom_data, eeprom->bautoload_fail_flag);
|
||||
}
|
||||
|
||||
static void _ReadPROMContent(
|
||||
|
||||
Reference in New Issue
Block a user