mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 03:24:19 +02:00
staging: r8188eu: hal data's board type is unused
BoardType in struct hal_data_8188e is not used. Remove the variable and the function to extract the board type from the efuses. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20211125151436.5895-7-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8da08f11ff
commit
e3f6a00506
|
|
@ -1207,17 +1207,6 @@ void Hal_EfuseParseXtal_8188E(struct adapter *pAdapter, u8 *hwinfo, bool AutoLoa
|
|||
DBG_88E("CrystalCap: 0x%2x\n", pHalData->CrystalCap);
|
||||
}
|
||||
|
||||
void Hal_EfuseParseBoardType88E(struct adapter *pAdapter, u8 *hwinfo, bool AutoLoadFail)
|
||||
{
|
||||
struct hal_data_8188e *pHalData = GET_HAL_DATA(pAdapter);
|
||||
|
||||
if (!AutoLoadFail)
|
||||
pHalData->BoardType = ((hwinfo[EEPROM_RF_BOARD_OPTION_88E] & 0xE0) >> 5);
|
||||
else
|
||||
pHalData->BoardType = 0;
|
||||
DBG_88E("Board Type: 0x%2x\n", pHalData->BoardType);
|
||||
}
|
||||
|
||||
void rtl8188e_EfuseParseChnlPlan(struct adapter *padapter, u8 *hwinfo, bool AutoLoadFail)
|
||||
{
|
||||
padapter->mlmepriv.ChannelPlan =
|
||||
|
|
|
|||
|
|
@ -1023,7 +1023,6 @@ void ReadAdapterInfo8188EU(struct adapter *Adapter)
|
|||
rtl8188e_EfuseParseChnlPlan(Adapter, eeprom->efuse_eeprom_data, eeprom->bautoload_fail_flag);
|
||||
Hal_EfuseParseXtal_8188E(Adapter, eeprom->efuse_eeprom_data, eeprom->bautoload_fail_flag);
|
||||
Hal_ReadAntennaDiversity88E(Adapter, eeprom->efuse_eeprom_data, eeprom->bautoload_fail_flag);
|
||||
Hal_EfuseParseBoardType88E(Adapter, eeprom->efuse_eeprom_data, eeprom->bautoload_fail_flag);
|
||||
Hal_ReadThermalMeter_88E(Adapter, eeprom->efuse_eeprom_data, eeprom->bautoload_fail_flag);
|
||||
|
||||
_ReadLEDSetting(Adapter, eeprom->efuse_eeprom_data, eeprom->bautoload_fail_flag);
|
||||
|
|
|
|||
|
|
@ -171,8 +171,6 @@ struct hal_data_8188e {
|
|||
/* rf_ctrl */
|
||||
u8 rf_type;
|
||||
|
||||
u8 BoardType;
|
||||
|
||||
/* EEPROM setting. */
|
||||
u16 EEPROMSVID;
|
||||
u16 EEPROMSDID;
|
||||
|
|
@ -326,8 +324,6 @@ void Hal_ReadThermalMeter_88E(struct adapter * dapter, u8 *PROMContent,
|
|||
bool AutoloadFail);
|
||||
void Hal_EfuseParseXtal_8188E(struct adapter *pAdapter, u8 *hwinfo,
|
||||
bool AutoLoadFail);
|
||||
void Hal_EfuseParseBoardType88E(struct adapter *pAdapter, u8 *hwinfo,
|
||||
bool AutoLoadFail);
|
||||
void Hal_ReadPowerSavingMode88E(struct adapter *pAdapter, u8 *hwinfo,
|
||||
bool AutoLoadFail);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user