mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 04:19:23 -04:00
staging: rtl8723bs: Remove unused function PHY_SetBWMode8723B
Remove unused function PHY_SetBWMode8723B and belonging unused function pointer in struct hal_ops set_bwmode_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/4f3a76bce3dc309a179e588d184765e54816d3d9.1726339782.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1e79c807c1
commit
95d8d2fe2b
@@ -1884,7 +1884,6 @@ void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc)
|
||||
|
||||
pHalFunc->UpdateRAMaskHandler = &UpdateHalRAMask8723B;
|
||||
|
||||
pHalFunc->set_bwmode_handler = &PHY_SetBWMode8723B;
|
||||
pHalFunc->set_channel_handler = &PHY_SwChnl8723B;
|
||||
pHalFunc->set_chnl_bw_handler = &PHY_SetSwChnlBWMode8723B;
|
||||
|
||||
|
||||
@@ -764,17 +764,6 @@ static void PHY_HandleSwChnlAndSetBW8723B(
|
||||
}
|
||||
}
|
||||
|
||||
void PHY_SetBWMode8723B(
|
||||
struct adapter *Adapter,
|
||||
enum channel_width Bandwidth, /* 20M or 40M */
|
||||
unsigned char Offset /* Upper, Lower, or Don't care */
|
||||
)
|
||||
{
|
||||
struct hal_com_data *pHalData = GET_HAL_DATA(Adapter);
|
||||
|
||||
PHY_HandleSwChnlAndSetBW8723B(Adapter, false, true, pHalData->CurrentChannel, Bandwidth, Offset, Offset, pHalData->CurrentChannel);
|
||||
}
|
||||
|
||||
/* Call after initialization */
|
||||
void PHY_SwChnl8723B(struct adapter *Adapter, u8 channel)
|
||||
{
|
||||
|
||||
@@ -189,7 +189,6 @@ struct hal_ops {
|
||||
void (*enable_interrupt)(struct adapter *padapter);
|
||||
void (*disable_interrupt)(struct adapter *padapter);
|
||||
u8 (*check_ips_status)(struct adapter *padapter);
|
||||
void (*set_bwmode_handler)(struct adapter *padapter, enum channel_width Bandwidth, u8 Offset);
|
||||
void (*set_channel_handler)(struct adapter *padapter, u8 channel);
|
||||
void (*set_chnl_bw_handler)(struct adapter *padapter, u8 channel, enum channel_width Bandwidth, u8 Offset40, u8 Offset80);
|
||||
|
||||
|
||||
@@ -53,9 +53,6 @@ void PHY_GetTxPowerLevel8723B(struct adapter *Adapter, s32 *powerlevel);
|
||||
|
||||
void PHY_SetTxPowerLevel8723B(struct adapter *Adapter, u8 channel);
|
||||
|
||||
void PHY_SetBWMode8723B(struct adapter *Adapter, enum channel_width Bandwidth,
|
||||
unsigned char Offset);
|
||||
|
||||
/* Call after initialization */
|
||||
void PHY_SwChnl8723B(struct adapter *Adapter, u8 channel);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user