mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 14:50:19 +00:00
staging: r8188eu: offset is always 0 in rtl8188e_ReadEFuse
The offset parameter of rtl8188e_ReadEFuse is always 0. Remove the parameter and use 0 in the function body. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220709171000.180481-11-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
36442aa73b
commit
db9895b86b
@ -531,21 +531,21 @@ exit:
|
||||
kfree(eFuseWord);
|
||||
}
|
||||
|
||||
void rtl8188e_ReadEFuse(struct adapter *Adapter, u16 _offset, u16 _size_byte, u8 *pbuf)
|
||||
void rtl8188e_ReadEFuse(struct adapter *Adapter, u16 _size_byte, u8 *pbuf)
|
||||
{
|
||||
int ret = _FAIL;
|
||||
if (rtw_IOL_applied(Adapter)) {
|
||||
rtl8188eu_InitPowerOn(Adapter);
|
||||
|
||||
iol_mode_enable(Adapter, 1);
|
||||
ret = iol_read_efuse(Adapter, _offset, _size_byte, pbuf);
|
||||
ret = iol_read_efuse(Adapter, 0, _size_byte, pbuf);
|
||||
iol_mode_enable(Adapter, 0);
|
||||
|
||||
if (_SUCCESS == ret)
|
||||
return;
|
||||
}
|
||||
|
||||
Hal_EfuseReadEFuse88E(Adapter, _offset, _size_byte, pbuf);
|
||||
Hal_EfuseReadEFuse88E(Adapter, 0, _size_byte, pbuf);
|
||||
}
|
||||
|
||||
void rtl8188e_read_chip_version(struct adapter *padapter)
|
||||
|
@ -942,7 +942,7 @@ void ReadAdapterInfo8188EU(struct adapter *Adapter)
|
||||
|
||||
if (!(eeValue & BOOT_FROM_EEPROM) && !eeprom->bautoload_fail_flag) {
|
||||
rtl8188e_EfusePowerSwitch(Adapter, true);
|
||||
rtl8188e_ReadEFuse(Adapter, 0, EFUSE_MAP_LEN_88E, efuse_buf);
|
||||
rtl8188e_ReadEFuse(Adapter, EFUSE_MAP_LEN_88E, efuse_buf);
|
||||
rtl8188e_EfusePowerSwitch(Adapter, false);
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ void rtl8188eu_init_default_value(struct adapter *adapt);
|
||||
void rtl8188e_SetHalODMVar(struct adapter *Adapter, void *pValue1, bool bSet);
|
||||
u32 rtl8188eu_InitPowerOn(struct adapter *adapt);
|
||||
void rtl8188e_EfusePowerSwitch(struct adapter *pAdapter, u8 PwrState);
|
||||
void rtl8188e_ReadEFuse(struct adapter *Adapter, u16 _offset, u16 _size_byte, u8 *pbuf);
|
||||
void rtl8188e_ReadEFuse(struct adapter *Adapter, u16 _size_byte, u8 *pbuf);
|
||||
|
||||
void hal_notch_filter_8188e(struct adapter *adapter, bool enable);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user