Skip to content

Commit 605685a

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

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 bool Hal_EfusePgPacketWrite_BT(
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_BT;
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 struct hal_version ReadChipVersion8723B(struct adapter *padapter)
13981369
{
13991370
u32 value32;
@@ -1645,7 +1616,6 @@ void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc)
16451616
{
16461617
/* Efuse related function */
16471618
pHalFunc->Efuse_WordEnableDataWrite = &Hal_EfuseWordEnableDataWrite;
1648-
pHalFunc->Efuse_PgPacketWrite_BT = &Hal_EfusePgPacketWrite_BT;
16491619

16501620
pHalFunc->SetHalODMVarHandler = &rtl8723b_SetHalODMVar;
16511621

drivers/staging/rtl8723bs/include/hal_intf.h

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

167167
u8 (*Efuse_WordEnableDataWrite)(struct adapter *padapter, u16 efuse_addr, u8 word_en, u8 *data, bool bPseudoTest);
168-
bool (*Efuse_PgPacketWrite_BT)(struct adapter *padapter, u8 offset, u8 word_en, u8 *data, bool bPseudoTest);
169168

170169
s32 (*xmit_thread_handler)(struct adapter *padapter);
171170
void (*hal_notch_filter)(struct adapter *adapter, bool enable);

0 commit comments

Comments
 (0)