staging: r8188eu: remove EFUSE_Read1Byte()
authorMichael Straube <straube.linux@gmail.com>
Sat, 18 Sep 2021 09:57:27 +0000 (11:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Sep 2021 11:40:21 +0000 (13:40 +0200)
Function EFUSE_Read1Byte() is not used, remove it.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210918095727.13591-9-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_efuse.c
drivers/staging/r8188eu/include/rtw_efuse.h

index 0c4ea1e45842d7ada2699306b6c259d02a40b9ea..801887f497cfadb4c4656a90692b3d3fc6b46b39 100644 (file)
@@ -127,64 +127,6 @@ ReadEFuseByte(
        *pbuf = (u8)(value32 & 0xff);
 }
 
-/*-----------------------------------------------------------------------------
- * Function:   EFUSE_Read1Byte
- *
- * Overview:   Copy from WMAC fot EFUSE read 1 byte.
- *
- * Input:       NONE
- *
- * Output:      NONE
- *
- * Return:      NONE
- *
- * Revised History:
- * When                        Who             Remark
- * 09/23/2008  MHC             Copy from WMAC.
- *
- *---------------------------------------------------------------------------*/
-u8 EFUSE_Read1Byte(struct adapter *Adapter, u16 Address)
-{
-       u8 data;
-       u8 Bytetemp = {0x00};
-       u8 temp = {0x00};
-       u32 k = 0;
-       u16 contentLen = 0;
-
-       rtl8188e_EFUSE_GetEfuseDefinition(Adapter, EFUSE_WIFI, TYPE_EFUSE_REAL_CONTENT_LEN, (void *)&contentLen, false);
-
-       if (Address < contentLen) {     /* E-fuse 512Byte */
-               /* Write E-fuse Register address bit0~7 */
-               temp = Address & 0xFF;
-               rtw_write8(Adapter, EFUSE_CTRL + 1, temp);
-               Bytetemp = rtw_read8(Adapter, EFUSE_CTRL + 2);
-               /* Write E-fuse Register address bit8~9 */
-               temp = ((Address >> 8) & 0x03) | (Bytetemp & 0xFC);
-               rtw_write8(Adapter, EFUSE_CTRL + 2, temp);
-
-               /* Write 0x30[31]= 0 */
-               Bytetemp = rtw_read8(Adapter, EFUSE_CTRL + 3);
-               temp = Bytetemp & 0x7F;
-               rtw_write8(Adapter, EFUSE_CTRL + 3, temp);
-
-               /* Wait Write-ready (0x30[31]= 1) */
-               Bytetemp = rtw_read8(Adapter, EFUSE_CTRL + 3);
-               while (!(Bytetemp & 0x80)) {
-                       Bytetemp = rtw_read8(Adapter, EFUSE_CTRL + 3);
-                       k++;
-                       if (k == 1000) {
-                               k = 0;
-                               break;
-                       }
-               }
-               data = rtw_read8(Adapter, EFUSE_CTRL);
-               return data;
-       } else {
-               return 0xFF;
-       }
-
-} /* EFUSE_Read1Byte */
-
 /*  11/16/2008 MH Read one byte from real Efuse. */
 u8 efuse_OneByteRead(struct adapter *pAdapter, u16 addr, u8 *data, bool pseudo)
 {
index 2dd74c9c691d162f8a838b4e99958cd26468d2d0..53ac906f79fd484782f11ee7dd47a5c566d0479b 100644 (file)
@@ -118,7 +118,6 @@ u8 efuse_OneByteWrite(struct adapter *adapter, u16 addr, u8 data, bool      test);
 
 void efuse_WordEnableDataRead(u8 word_en, u8 *sourdata, u8 *targetdata);
 
-u8 EFUSE_Read1Byte(struct adapter *adapter, u16 address);
 void EFUSE_ShadowMapUpdate(struct adapter *adapter, u8 efusetype, bool test);
 void EFUSE_ShadowRead(struct adapter *adapt, u8 type, u16 offset, u32 *val);