staging: rtl8723bs: hal: Replace function PHY_GetTxPowerIndex()
Remove function PHY_GetTxPowerIndex as it does nothing except call PHY_GetTxPowerIndex_8723B. Rename PHY_GetTxPowerIndex_8723B to PHY_GetTxPowerIndex 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-3-nishkadg.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fe2ffeb5fd
commit
9dd2f1d9a1
|
@ -2040,17 +2040,6 @@ void PHY_SetTxPowerLimit(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 PHY_GetTxPowerIndex(
|
|
||||||
struct adapter *padapter,
|
|
||||||
u8 RFPath,
|
|
||||||
u8 Rate,
|
|
||||||
enum CHANNEL_WIDTH BandWidth,
|
|
||||||
u8 Channel
|
|
||||||
)
|
|
||||||
{
|
|
||||||
return PHY_GetTxPowerIndex_8723B(padapter, RFPath, Rate, BandWidth, Channel);
|
|
||||||
}
|
|
||||||
|
|
||||||
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);
|
||||||
|
|
|
@ -668,7 +668,7 @@ void PHY_SetTxPowerIndex(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 PHY_GetTxPowerIndex_8723B(
|
u8 PHY_GetTxPowerIndex(
|
||||||
struct adapter *padapter,
|
struct adapter *padapter,
|
||||||
u8 RFPath,
|
u8 RFPath,
|
||||||
u8 Rate,
|
u8 Rate,
|
||||||
|
|
|
@ -213,15 +213,6 @@ PHY_GetTxPowerTrackingOffset(
|
||||||
u8 RFPath
|
u8 RFPath
|
||||||
);
|
);
|
||||||
|
|
||||||
u8
|
|
||||||
PHY_GetTxPowerIndex(
|
|
||||||
struct adapter * padapter,
|
|
||||||
u8 RFPath,
|
|
||||||
u8 Rate,
|
|
||||||
enum CHANNEL_WIDTH BandWidth,
|
|
||||||
u8 Channel
|
|
||||||
);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_ChannelPlanToRegulation(
|
Hal_ChannelPlanToRegulation(
|
||||||
struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
|
|
|
@ -73,7 +73,7 @@ u8 Rate
|
||||||
);
|
);
|
||||||
|
|
||||||
u8
|
u8
|
||||||
PHY_GetTxPowerIndex_8723B(
|
PHY_GetTxPowerIndex(
|
||||||
struct adapter * padapter,
|
struct adapter * padapter,
|
||||||
u8 RFPath,
|
u8 RFPath,
|
||||||
u8 Rate,
|
u8 Rate,
|
||||||
|
|
Loading…
Reference in New Issue