Skip to contentSkip to conversation

staging: rtl8723bs: Efuse_WordEnableDataWrite() is not used

PATCH New Michael Straube 1 participant 1 message Jul 13, 2025 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8723bs: Efuse_WordEnableDataWrite() is not used

The function Efuse_WordEnableDataWrite() defined in rtw_efuse.c is not used. Remove the function and code it is calling, i.e. the function pointer (*Efuse_WordEnableDataWrite) in struct hal_ops and the function Hal_EfuseWordEnableDataWrite() to which it points.

---
 drivers/staging/rtl8723bs/core/rtw_efuse.c    | 12 ----
 .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 68 -------------------
 drivers/staging/rtl8723bs/include/hal_intf.h  |  3 -
 drivers/staging/rtl8723bs/include/rtw_efuse.h |  1 -
 4 files changed, 84 deletions(-)
drivers/staging/rtl8723bs/core/rtw_efuse.c +0 -12
index 7a74b011dedc..51cbf62c8f7d 100644
@@ -286,18 +286,6 @@ u8 efuse_OneByteWrite(struct adapter *padapter, u16 addr, u8 data, bool bPseudoT
 	return bResult;
 }
 
-u8
-Efuse_WordEnableDataWrite(struct adapter *padapter,
-						u16		efuse_addr,
-						u8 word_en,
-						u8 *data,
-						bool		bPseudoTest)
-{
-	return padapter->HalFunc.Efuse_WordEnableDataWrite(padapter, efuse_addr,
-							   word_en, data,
-							   bPseudoTest);
-}
-
 /*-----------------------------------------------------------------------------
  * Function:	Efuse_ReadAllMap
  *
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +0 -68

80 lines not on this page · raw message

drivers/staging/rtl8723bs/include/hal_intf.h +0 -3
index 5dddafe035c2..da4215841773 100644
@@ -162,9 +162,6 @@ typedef s32 (*c2h_id_filter)(u8 *c2h_evt);
 
 struct hal_ops {
 	void (*SetHalODMVarHandler)(struct adapter *padapter, enum hal_odm_variable eVariable, void *pValue1, bool bSet);
-
-	u8 (*Efuse_WordEnableDataWrite)(struct adapter *padapter, u16 efuse_addr, u8 word_en, u8 *data, bool bPseudoTest);
-
 	s32 (*xmit_thread_handler)(struct adapter *padapter);
 	void (*hal_notch_filter)(struct adapter *adapter, bool enable);
 	void (*hal_reset_security_engine)(struct adapter *adapter);
drivers/staging/rtl8723bs/include/rtw_efuse.h +0 -1
index d6ea8a4a856f..669565fa1c69 100644
@@ -96,7 +96,6 @@ u8 efuse_OneByteRead(struct adapter *padapter, u16 addr, u8 *data, bool	 bPseudo
 u8 efuse_OneByteWrite(struct adapter *padapter, u16 addr, u8 data, bool	 bPseudoTest);
 
 void Efuse_PowerSwitch(struct adapter *padapter, u8 bWrite, u8  PwrState);
-u8 Efuse_WordEnableDataWrite(struct adapter *padapter, u16 efuse_addr, u8 word_en, u8 *data, bool bPseudoTest);
 
 u8 EFUSE_Read1Byte(struct adapter *padapter, u16 Address);
 void EFUSE_ShadowMapUpdate(struct adapter *padapter, u8 efuseType, bool bPseudoTest);
Signature · 1 line
2.50.1