staging: rtl8188eu: efuse_ReadEFuse(): Remove parameter bool bPseudoTest
authornavin patidar <navin.patidar@gmail.com>
Fri, 20 Jun 2014 14:59:35 +0000 (20:29 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2014 16:52:33 +0000 (09:52 -0700)
bPseudoTest is always false.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_efuse.c
drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c
drivers/staging/rtl8188eu/include/rtw_efuse.h

index 95198885581510b1c7074290de156ec64ec40843..ecfd311175f49c889f08bb5fdc8ea32219bdcffa 100644 (file)
@@ -232,7 +232,7 @@ u8 rtw_efuse_map_read(struct adapter *padapter, u16 addr, u16 cnts, u8 *data)
 
        Efuse_PowerSwitch(padapter, false, true);
 
-       efuse_ReadEFuse(padapter, EFUSE_WIFI, addr, cnts, data, false);
+       efuse_ReadEFuse(padapter, EFUSE_WIFI, addr, cnts, data);
 
        Efuse_PowerSwitch(padapter, false, false);
 
@@ -415,7 +415,7 @@ static void Efuse_ReadAllMap(struct adapter *pAdapter, u8 efuseType, u8 *Efuse,
 
        EFUSE_GetEfuseDefinition(pAdapter, efuseType, TYPE_EFUSE_MAP_LEN, (void *)&mapLen);
 
-       efuse_ReadEFuse(pAdapter, efuseType, 0, mapLen, Efuse, pseudo);
+       efuse_ReadEFuse(pAdapter, efuseType, 0, mapLen, Efuse);
 
        Efuse_PowerSwitch(pAdapter, false, false);
 }
index ff5dfff4ed39ca9f744e1fde3b3d5ed2caec215e..7ef23130f11d4224e858b744b4873b43da6fd350 100644 (file)
@@ -807,23 +807,15 @@ void Efuse_PowerSwitch(
        }
 }
 
-void efuse_ReadEFuse(struct adapter *Adapter, u8 efuseType, u16 _offset, u16 _size_byte, u8 *pbuf, bool bPseudoTest)
+void efuse_ReadEFuse(struct adapter *Adapter, u8 efuseType, u16 _offset, u16 _size_byte, u8 *pbuf)
 {
-       if (!bPseudoTest) {
-               int ret = _FAIL;
-               if (rtw_IOL_applied(Adapter)) {
-                       rtw_hal_power_on(Adapter);
 
-                       iol_mode_enable(Adapter, 1);
-                       ret = iol_read_efuse(Adapter, 0, _offset, _size_byte, pbuf);
-                       iol_mode_enable(Adapter, 0);
-
-                       if (_SUCCESS == ret)
-                               goto exit;
-               }
+       if (rtw_IOL_applied(Adapter)) {
+               rtw_hal_power_on(Adapter);
+               iol_mode_enable(Adapter, 1);
+               iol_read_efuse(Adapter, 0, _offset, _size_byte, pbuf);
+               iol_mode_enable(Adapter, 0);
        }
-
-exit:
        return;
 }
 
index cd96366c11ffc776e0a311aa392b836d633bf7bf..fc873887c174ffd6c6195471e26561c070f7945c 100644 (file)
@@ -131,7 +131,7 @@ u8 efuse_OneByteRead(struct adapter *adapter, u16 addr, u8 *data);
 u8 efuse_OneByteWrite(struct adapter *adapter, u16 addr, u8 data);
 
 void efuse_ReadEFuse(struct adapter *Adapter, u8 efuseType, u16 _offset,
-               u16 _size_byte, u8 *pbuf, bool bPseudoTest);
+               u16 _size_byte, u8 *pbuf);
 void Efuse_PowerSwitch(struct adapter *adapt, u8 bWrite, u8  PwrState);
 int Efuse_PgPacketRead(struct adapter *adapt, u8 offset, u8 *data, bool test);
 bool Efuse_PgPacketWrite(struct adapter *adapter, u8 offset, u8 word, u8 *data,