]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: rtl8723bs: remove struct hal_ops
authorMichael Straube <straube.linux@gmail.com>
Tue, 15 Jul 2025 18:28:14 +0000 (20:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2025 07:38:45 +0000 (09:38 +0200)
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>
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c
drivers/staging/rtl8723bs/hal/sdio_halinit.c
drivers/staging/rtl8723bs/include/drv_types.h
drivers/staging/rtl8723bs/include/hal_intf.h
drivers/staging/rtl8723bs/include/rtl8723b_hal.h
drivers/staging/rtl8723bs/include/sdio_hal.h
drivers/staging/rtl8723bs/os_dep/sdio_intf.c

index 1e9447633465ab8864c3633ed2f5aa06bf292b7a..a9f33444aec2c31b9290464097106fd1f6620450 100644 (file)
@@ -1312,11 +1312,6 @@ void UpdateHalRAMask8723B(struct adapter *padapter, u32 mac_id, u8 rssi_level)
        pdmpriv->INIDATA_RATE[mac_id] = psta->init_rate;
 }
 
-
-void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc)
-{
-}
-
 void rtl8723b_InitAntenna_Selection(struct adapter *padapter)
 {
        u8 val;
index af9a2b068796a74d9e328da8322a875b6cbbc366..35f48b5641992df11db9f82362fa37b8223a5e18 100644 (file)
@@ -1251,11 +1251,3 @@ u8 SetHalDefVar8723BSDIO(struct adapter *Adapter, enum hal_def_variable eVariabl
 {
        return SetHalDefVar8723B(Adapter, eVariable, pValue);
 }
-
-void rtl8723bs_set_hal_ops(struct adapter *padapter)
-{
-       struct hal_ops *pHalFunc = &padapter->HalFunc;
-
-       rtl8723b_set_hal_ops(pHalFunc);
-
-}
index 7b0e824e05a9a1727be5f7195841416ccdf753f6..080c321665c07d63520d236fd71950e5a5dfc012 100644 (file)
@@ -350,7 +350,6 @@ struct adapter {
 
        void *HalData;
        u32 hal_data_sz;
-       struct hal_ops  HalFunc;
 
        s32     bDriverStopped;
        s32     bSurpriseRemoved;
index 248f54f04c5efbee0e07e455f17dfc3a7aeb5cb1..67d51e55bd44be0b9d9cc4a07d3651ff5cf880bd 100644 (file)
@@ -160,9 +160,6 @@ enum hal_intf_ps_func {
 
 typedef s32 (*c2h_id_filter)(u8 *c2h_evt);
 
-struct hal_ops {
-};
-
 #define RF_CHANGE_BY_INIT      0
 #define RF_CHANGE_BY_IPS       BIT28
 #define RF_CHANGE_BY_PS                BIT29
index a4a14474c35d878794226c75db1925dee3441fbe..40ff96d3cf748fd1ecd31711d96cc45887bd353c 100644 (file)
@@ -223,7 +223,6 @@ void Hal_EfuseParseVoltage_8723B(struct adapter *padapter, u8 *hwinfo,
 
 void C2HPacketHandler_8723B(struct adapter *padapter, u8 *pbuffer, u16 length);
 
-void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc);
 void SetHwReg8723B(struct adapter *padapter, u8 variable, u8 *val);
 void GetHwReg8723B(struct adapter *padapter, u8 variable, u8 *val);
 u8 SetHalDefVar8723B(struct adapter *padapter, enum hal_def_variable variable,
index 024acf9b530da022cd7f47264536bf4b82495e6b..6538253765f12661fb031d724424597e1fa4244c 100644 (file)
@@ -11,6 +11,4 @@ u8 sd_int_isr(struct adapter *padapter);
 void sd_int_dpc(struct adapter *padapter);
 void rtw_set_hal_ops(struct adapter *padapter);
 
-void rtl8723bs_set_hal_ops(struct adapter *padapter);
-
 #endif /* __SDIO_HAL_H__ */
index e735747f2000186593fd737ca9e31401b7dfd920..f3caaa857c8647120bd253b6b4c0bcf0cf7151e0 100644 (file)
@@ -216,8 +216,6 @@ void rtw_set_hal_ops(struct adapter *padapter)
 {
        /* alloc memory for HAL DATA */
        rtw_hal_data_init(padapter);
-
-       rtl8723bs_set_hal_ops(padapter);
 }
 
 static void sd_intf_start(struct adapter *padapter)