[PATCH 15/61] staging: rtl8723bs: remove unimplemented halbtcoutsrc_GetBtReg helper
From: Arsenii Pashchenko
Date: Wed Jul 15 2026 - 08:54:52 EST
Remove the halbtcoutsrc_GetBtReg() stub function from hal_btcoex.c.
The function was never fully implemented and simply returned a
temporary constant value of 0.
Clean up the codebase by removing the function definition, its
associated prototype in the header file, and updating or removing
its remaining call sites across the driver.
Signed-off-by: Arsenii Pashchenko <ulijg308@xxxxxxxxx>
---
drivers/staging/rtl8723bs/hal/hal_btcoex.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/staging/rtl8723bs/hal/hal_btcoex.c b/drivers/staging/rtl8723bs/hal/hal_btcoex.c
index 195ccc4b7..c66ca6f73 100644
--- a/drivers/staging/rtl8723bs/hal/hal_btcoex.c
+++ b/drivers/staging/rtl8723bs/hal/hal_btcoex.c
@@ -729,11 +729,6 @@ static void halbtcoutsrc_SetBtReg(void *pBtcContext, u8 RegType, u32 RegAddr, u3
rtw_hal_fill_h2c_cmd(padapter, 0x67, 4, &(CmdBuffer2[0]));
}
-static u32 halbtcoutsrc_GetBtReg(void *pBtcContext, u8 RegType, u32 RegAddr)
-{
- /* To be implemented. Always return 0 temporarily */
- return 0;
-}
static void halbtcoutsrc_FillH2cCmd(void *pBtcContext, u8 elementId, u32 cmdLen, u8 *pCmdBuffer)
{
@@ -808,7 +803,7 @@ void hal_btcoex_Initialize(void *padapter)
pBtCoexist->fBtcGet = halbtcoutsrc_Get;
pBtCoexist->fBtcSet = halbtcoutsrc_Set;
- pBtCoexist->fBtcGetBtReg = halbtcoutsrc_GetBtReg;
+ pBtCoexist->fBtcGetBtReg = 0; /*not be implemented*/
pBtCoexist->fBtcSetBtReg = halbtcoutsrc_SetBtReg;
pBtCoexist->boardInfo.singleAntPath = 0;
--
2.55.0