1
0
Fork 0

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>
alistair/sunxi64-5.4-dsi
Nishka Dasgupta 2019-07-25 10:56:39 +05:30 committed by Greg Kroah-Hartman
parent fe2ffeb5fd
commit 9dd2f1d9a1
4 changed files with 2 additions and 22 deletions

View File

@ -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)
{
struct hal_com_data *pHalData = GET_HAL_DATA(Adapter);

View File

@ -668,7 +668,7 @@ void PHY_SetTxPowerIndex(
}
}
u8 PHY_GetTxPowerIndex_8723B(
u8 PHY_GetTxPowerIndex(
struct adapter *padapter,
u8 RFPath,
u8 Rate,

View File

@ -213,15 +213,6 @@ PHY_GetTxPowerTrackingOffset(
u8 RFPath
);
u8
PHY_GetTxPowerIndex(
struct adapter * padapter,
u8 RFPath,
u8 Rate,
enum CHANNEL_WIDTH BandWidth,
u8 Channel
);
void
Hal_ChannelPlanToRegulation(
struct adapter * Adapter,

View File

@ -73,7 +73,7 @@ u8 Rate
);
u8
PHY_GetTxPowerIndex_8723B(
PHY_GetTxPowerIndex(
struct adapter * padapter,
u8 RFPath,
u8 Rate,