Skip to content

Commit 6f569ef

Browse files
Philipp Hortmanngregkh
authored andcommitted
staging: rtl8723bs: Remove unused function Hal_EfusePgPacketWrite
Remove unused function pointer Efuse_PgPacketWrite and unused function Hal_EfusePgPacketWrite. Signed-off-by: Philipp Hortmann <[email protected]> Link: https://lore.kernel.org/r/e2d4cfd440651ed08952afccbb3e927c26927c77.1730916582.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ee65788 commit 6f569ef

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,35 +1365,6 @@ static u8 hal_EfusePgPacketWriteData(
13651365
return true;
13661366
}
13671367

1368-
static s32 Hal_EfusePgPacketWrite(
1369-
struct adapter *padapter,
1370-
u8 offset,
1371-
u8 word_en,
1372-
u8 *pData,
1373-
bool bPseudoTest
1374-
)
1375-
{
1376-
struct pgpkt_struct targetPkt;
1377-
u16 startAddr = 0;
1378-
u8 efuseType = EFUSE_WIFI;
1379-
1380-
if (!hal_EfusePgCheckAvailableAddr(padapter, efuseType, bPseudoTest))
1381-
return false;
1382-
1383-
hal_EfuseConstructPGPkt(offset, word_en, pData, &targetPkt);
1384-
1385-
if (!hal_EfusePartialWriteCheck(padapter, efuseType, &startAddr, &targetPkt, bPseudoTest))
1386-
return false;
1387-
1388-
if (!hal_EfusePgPacketWriteHeader(padapter, efuseType, &startAddr, &targetPkt, bPseudoTest))
1389-
return false;
1390-
1391-
if (!hal_EfusePgPacketWriteData(padapter, efuseType, &startAddr, &targetPkt, bPseudoTest))
1392-
return false;
1393-
1394-
return true;
1395-
}
1396-
13971368
static bool Hal_EfusePgPacketWrite_BT(
13981369
struct adapter *padapter,
13991370
u8 offset,
@@ -1673,7 +1644,6 @@ void UpdateHalRAMask8723B(struct adapter *padapter, u32 mac_id, u8 rssi_level)
16731644
void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc)
16741645
{
16751646
/* Efuse related function */
1676-
pHalFunc->Efuse_PgPacketWrite = &Hal_EfusePgPacketWrite;
16771647
pHalFunc->Efuse_WordEnableDataWrite = &Hal_EfuseWordEnableDataWrite;
16781648
pHalFunc->Efuse_PgPacketWrite_BT = &Hal_EfusePgPacketWrite_BT;
16791649

drivers/staging/rtl8723bs/include/hal_intf.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ typedef s32 (*c2h_id_filter)(u8 *c2h_evt);
164164
struct hal_ops {
165165
void (*SetHalODMVarHandler)(struct adapter *padapter, enum hal_odm_variable eVariable, void *pValue1, bool bSet);
166166

167-
int (*Efuse_PgPacketWrite)(struct adapter *padapter, u8 offset, u8 word_en, u8 *data, bool bPseudoTest);
168167
u8 (*Efuse_WordEnableDataWrite)(struct adapter *padapter, u16 efuse_addr, u8 word_en, u8 *data, bool bPseudoTest);
169168
bool (*Efuse_PgPacketWrite_BT)(struct adapter *padapter, u8 offset, u8 word_en, u8 *data, bool bPseudoTest);
170169

0 commit comments

Comments
 (0)