mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
staging: rtl8723bs: hal: Replace function PHY_SetTxPowerIndex()
Remove function PHY_SetTxPowerIndex as it does nothing except call PHY_SetTxPowerIndex_8723B. Rename PHY_SetTxPowerIndex_8723B to PHY_SetTxPowerIndex to maintain compatibility with call site. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Link: https://lore.kernel.org/r/20190725052645.2372-2-nishkadg.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2e20a5ac67
commit
fe2ffeb5fd
4 changed files with 2 additions and 17 deletions
|
@ -2051,13 +2051,6 @@ u8 PHY_GetTxPowerIndex(
|
||||||
return PHY_GetTxPowerIndex_8723B(padapter, RFPath, Rate, BandWidth, Channel);
|
return PHY_GetTxPowerIndex_8723B(padapter, RFPath, Rate, BandWidth, Channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PHY_SetTxPowerIndex(
|
|
||||||
struct adapter *padapter, u32 PowerIndex, u8 RFPath, u8 Rate
|
|
||||||
)
|
|
||||||
{
|
|
||||||
PHY_SetTxPowerIndex_8723B(padapter, PowerIndex, RFPath, Rate);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Hal_ChannelPlanToRegulation(struct adapter *Adapter, u16 ChannelPlan)
|
void Hal_ChannelPlanToRegulation(struct adapter *Adapter, u16 ChannelPlan)
|
||||||
{
|
{
|
||||||
struct hal_com_data *pHalData = GET_HAL_DATA(Adapter);
|
struct hal_com_data *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
|
|
@ -585,7 +585,7 @@ int PHY_RFConfig8723B(struct adapter *Adapter)
|
||||||
* <20120830, Kordan>
|
* <20120830, Kordan>
|
||||||
**************************************************************************************************************/
|
**************************************************************************************************************/
|
||||||
|
|
||||||
void PHY_SetTxPowerIndex_8723B(
|
void PHY_SetTxPowerIndex(
|
||||||
struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
u32 PowerIndex,
|
u32 PowerIndex,
|
||||||
u8 RFPath,
|
u8 RFPath,
|
||||||
|
|
|
@ -222,14 +222,6 @@ enum CHANNEL_WIDTH BandWidth,
|
||||||
u8 Channel
|
u8 Channel
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
|
||||||
PHY_SetTxPowerIndex(
|
|
||||||
struct adapter * padapter,
|
|
||||||
u32 PowerIndex,
|
|
||||||
u8 RFPath,
|
|
||||||
u8 Rate
|
|
||||||
);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_ChannelPlanToRegulation(
|
Hal_ChannelPlanToRegulation(
|
||||||
struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
|
|
|
@ -65,7 +65,7 @@ int PHY_RFConfig8723B(struct adapter *Adapter );
|
||||||
s32 PHY_MACConfig8723B(struct adapter *padapter);
|
s32 PHY_MACConfig8723B(struct adapter *padapter);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_SetTxPowerIndex_8723B(
|
PHY_SetTxPowerIndex(
|
||||||
struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
u32 PowerIndex,
|
u32 PowerIndex,
|
||||||
u8 RFPath,
|
u8 RFPath,
|
||||||
|
|
Loading…
Reference in a new issue