]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: rtl8723bs: Remove unused function PHY_GetTxPowerLevel8723B
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 15 Sep 2024 06:38:23 +0000 (08:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Oct 2024 09:48:28 +0000 (11:48 +0200)
Remove unused function PHY_GetTxPowerLevel8723B and belonging unused
function pointer in struct hal_ops get_tx_power_level_handler.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/65e86a58b513c580325fe93cc47a114f51437eea.1726339782.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c
drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c
drivers/staging/rtl8723bs/include/hal_intf.h
drivers/staging/rtl8723bs/include/hal_phy_cfg.h

index a44c1dd0f6911a7ca4ede827c9078592669fdf24..ea0a9849d28b175bbe6050461389424634f0d196 100644 (file)
@@ -1888,7 +1888,6 @@ void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc)
        pHalFunc->set_chnl_bw_handler = &PHY_SetSwChnlBWMode8723B;
 
        pHalFunc->set_tx_power_level_handler = &PHY_SetTxPowerLevel8723B;
-       pHalFunc->get_tx_power_level_handler = &PHY_GetTxPowerLevel8723B;
 
        pHalFunc->hal_dm_watchdog = &rtl8723b_HalDmWatchDog;
        pHalFunc->hal_dm_watchdog_in_lps = &rtl8723b_HalDmWatchDog_in_LPS;
index a4ea124eb9ad9cdece50bcb55fae959ddded2feb..d8709d40cb33fe95319dcc3ee838e9acf2f55f2c 100644 (file)
@@ -575,10 +575,6 @@ void PHY_SetTxPowerLevel8723B(struct adapter *Adapter, u8 Channel)
        PHY_SetTxPowerLevelByPath(Adapter, Channel, RFPath);
 }
 
-void PHY_GetTxPowerLevel8723B(struct adapter *Adapter, s32 *powerlevel)
-{
-}
-
 static void phy_SetRegBW_8723B(
        struct adapter *Adapter, enum channel_width CurrentBW
 )
index 84da38c55d7e717af63f29cf172e0071e0bd3559..be52288a2f1a4cfbce48165491c0de78c611dc6f 100644 (file)
@@ -193,7 +193,6 @@ struct hal_ops {
        void (*set_chnl_bw_handler)(struct adapter *padapter, u8 channel, enum channel_width Bandwidth, u8 Offset40, u8 Offset80);
 
        void (*set_tx_power_level_handler)(struct adapter *padapter, u8 channel);
-       void (*get_tx_power_level_handler)(struct adapter *padapter, s32 *powerlevel);
 
        void (*hal_dm_watchdog)(struct adapter *padapter);
        void (*hal_dm_watchdog_in_lps)(struct adapter *padapter);
index acf71494636570356a80eb3779c3de34a9b85a32..07bf0a8d019aa9a1beb4888d6d3cf3b8dbe10390 100644 (file)
@@ -49,8 +49,6 @@ void PHY_SetTxPowerIndex(struct adapter *Adapter, u32 PowerIndex,
 u8 PHY_GetTxPowerIndex(struct adapter *padapter, u8 RFPath, u8 Rate,
                        enum channel_width BandWidth, u8 Channel);
 
-void PHY_GetTxPowerLevel8723B(struct adapter *Adapter, s32 *powerlevel);
-
 void PHY_SetTxPowerLevel8723B(struct adapter *Adapter, u8 channel);
 
 /*  Call after initialization */