staging: r8188eu: remove EFUSE_ShadowRead()
authorMichael Straube <straube.linux@gmail.com>
Wed, 22 Sep 2021 20:03:34 +0000 (22:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Sep 2021 15:29:39 +0000 (17:29 +0200)
Function EFUSE_ShadowRead() is not used, remove it. It is the only
user of the functions efuse_ShadowRead{1,2,4}Byte, remove these as
well.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210922200420.9693-2-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 801887f497cfadb4c4656a90692b3d3fc6b46b39..958954473d9b903602bb55b3cd6f832021c32d85 100644 (file)
@@ -516,66 +516,6 @@ exit:
        return ret;
 }
 
-/*-----------------------------------------------------------------------------
- * Function:   efuse_ShadowRead1Byte
- *                     efuse_ShadowRead2Byte
- *                     efuse_ShadowRead4Byte
- *
- * Overview:   Read from efuse init map by one/two/four bytes !!!!!
- *
- * Input:       NONE
- *
- * Output:      NONE
- *
- * Return:      NONE
- *
- * Revised History:
- * When                        Who             Remark
- * 11/12/2008  MHC             Create Version 0.
- *
- *---------------------------------------------------------------------------*/
-static void
-efuse_ShadowRead1Byte(
-               struct adapter *pAdapter,
-               u16 Offset,
-               u8 *Value)
-{
-       struct eeprom_priv *pEEPROM = &pAdapter->eeprompriv;
-
-       *Value = pEEPROM->efuse_eeprom_data[Offset];
-
-}      /*  EFUSE_ShadowRead1Byte */
-
-/* Read Two Bytes */
-static void
-efuse_ShadowRead2Byte(
-               struct adapter *pAdapter,
-               u16 Offset,
-               u16 *Value)
-{
-       struct eeprom_priv *pEEPROM = &pAdapter->eeprompriv;
-
-       *Value = pEEPROM->efuse_eeprom_data[Offset];
-       *Value |= pEEPROM->efuse_eeprom_data[Offset + 1] << 8;
-
-}      /*  EFUSE_ShadowRead2Byte */
-
-/* Read Four Bytes */
-static void
-efuse_ShadowRead4Byte(
-               struct adapter *pAdapter,
-               u16 Offset,
-               u32 *Value)
-{
-       struct eeprom_priv *pEEPROM = &pAdapter->eeprompriv;
-
-       *Value = pEEPROM->efuse_eeprom_data[Offset];
-       *Value |= pEEPROM->efuse_eeprom_data[Offset + 1] << 8;
-       *Value |= pEEPROM->efuse_eeprom_data[Offset + 2] << 16;
-       *Value |= pEEPROM->efuse_eeprom_data[Offset + 3] << 24;
-
-}      /*  efuse_ShadowRead4Byte */
-
 /*-----------------------------------------------------------------------------
  * Function:   Efuse_ReadAllMap
  *
@@ -636,30 +576,3 @@ void EFUSE_ShadowMapUpdate(
        else
                Efuse_ReadAllMap(pAdapter, efuseType, pEEPROM->efuse_eeprom_data, pseudo);
 } /*  EFUSE_ShadowMapUpdate */
-
-/*-----------------------------------------------------------------------------
- * Function:   EFUSE_ShadowRead
- *
- * Overview:   Read from efuse init map !!!!!
- *
- * Input:       NONE
- *
- * Output:      NONE
- *
- * Return:      NONE
- *
- * Revised History:
- * When                        Who             Remark
- * 11/12/2008  MHC             Create Version 0.
- *
- *---------------------------------------------------------------------------*/
-void EFUSE_ShadowRead(struct adapter *pAdapter, u8 Type, u16 Offset, u32 *Value)
-{
-       if (Type == 1)
-               efuse_ShadowRead1Byte(pAdapter, Offset, (u8 *)Value);
-       else if (Type == 2)
-               efuse_ShadowRead2Byte(pAdapter, Offset, (u16 *)Value);
-       else if (Type == 4)
-               efuse_ShadowRead4Byte(pAdapter, Offset, (u32 *)Value);
-
-}      /*  EFUSE_ShadowRead */
index 53ac906f79fd484782f11ee7dd47a5c566d0479b..81407efbdc447514fae588fb4063092c9b03f957 100644 (file)
@@ -119,6 +119,5 @@ u8 efuse_OneByteWrite(struct adapter *adapter, u16 addr, u8 data, bool      test);
 void efuse_WordEnableDataRead(u8 word_en, u8 *sourdata, u8 *targetdata);
 
 void EFUSE_ShadowMapUpdate(struct adapter *adapter, u8 efusetype, bool test);
-void EFUSE_ShadowRead(struct adapter *adapt, u8 type, u16 offset, u32 *val);
 
 #endif