Skip to content

Commit 473b892

Browse files
mistraubegregkh
authored andcommitted
staging: rtl8723bs: remove struct hal_ops
After previous patches, struct hal_ops is finally empty now. Remove the structure and related initialization functions. Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20250715182814.212708-12-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 86dcc99 commit 473b892

7 files changed

Lines changed: 0 additions & 22 deletions

File tree

drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,11 +1312,6 @@ void UpdateHalRAMask8723B(struct adapter *padapter, u32 mac_id, u8 rssi_level)
13121312
pdmpriv->INIDATA_RATE[mac_id] = psta->init_rate;
13131313
}
13141314

1315-
1316-
void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc)
1317-
{
1318-
}
1319-
13201315
void rtl8723b_InitAntenna_Selection(struct adapter *padapter)
13211316
{
13221317
u8 val;

drivers/staging/rtl8723bs/hal/sdio_halinit.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,11 +1251,3 @@ u8 SetHalDefVar8723BSDIO(struct adapter *Adapter, enum hal_def_variable eVariabl
12511251
{
12521252
return SetHalDefVar8723B(Adapter, eVariable, pValue);
12531253
}
1254-
1255-
void rtl8723bs_set_hal_ops(struct adapter *padapter)
1256-
{
1257-
struct hal_ops *pHalFunc = &padapter->HalFunc;
1258-
1259-
rtl8723b_set_hal_ops(pHalFunc);
1260-
1261-
}

drivers/staging/rtl8723bs/include/drv_types.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ struct adapter {
350350

351351
void *HalData;
352352
u32 hal_data_sz;
353-
struct hal_ops HalFunc;
354353

355354
s32 bDriverStopped;
356355
s32 bSurpriseRemoved;

drivers/staging/rtl8723bs/include/hal_intf.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,6 @@ enum hal_intf_ps_func {
160160

161161
typedef s32 (*c2h_id_filter)(u8 *c2h_evt);
162162

163-
struct hal_ops {
164-
};
165-
166163
#define RF_CHANGE_BY_INIT 0
167164
#define RF_CHANGE_BY_IPS BIT28
168165
#define RF_CHANGE_BY_PS BIT29

drivers/staging/rtl8723bs/include/rtl8723b_hal.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ void Hal_EfuseParseVoltage_8723B(struct adapter *padapter, u8 *hwinfo,
223223

224224
void C2HPacketHandler_8723B(struct adapter *padapter, u8 *pbuffer, u16 length);
225225

226-
void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc);
227226
void SetHwReg8723B(struct adapter *padapter, u8 variable, u8 *val);
228227
void GetHwReg8723B(struct adapter *padapter, u8 variable, u8 *val);
229228
u8 SetHalDefVar8723B(struct adapter *padapter, enum hal_def_variable variable,

drivers/staging/rtl8723bs/include/sdio_hal.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,4 @@ u8 sd_int_isr(struct adapter *padapter);
1111
void sd_int_dpc(struct adapter *padapter);
1212
void rtw_set_hal_ops(struct adapter *padapter);
1313

14-
void rtl8723bs_set_hal_ops(struct adapter *padapter);
15-
1614
#endif /* __SDIO_HAL_H__ */

drivers/staging/rtl8723bs/os_dep/sdio_intf.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,6 @@ void rtw_set_hal_ops(struct adapter *padapter)
216216
{
217217
/* alloc memory for HAL DATA */
218218
rtw_hal_data_init(padapter);
219-
220-
rtl8723bs_set_hal_ops(padapter);
221219
}
222220

223221
static void sd_intf_start(struct adapter *padapter)

0 commit comments

Comments
 (0)