Commit 9dd2f1d9 authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman

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: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190725052645.2372-3-nishkadg.linux@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fe2ffeb5
...@@ -2040,17 +2040,6 @@ void PHY_SetTxPowerLimit( ...@@ -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( ...@@ -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( ...@@ -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 ...@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment