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

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.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fe2ffeb5
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -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);
+1 −1
Original line number Diff line number Diff line
@@ -668,7 +668,7 @@ void PHY_SetTxPowerIndex(
	}
}

u8 PHY_GetTxPowerIndex_8723B(
u8 PHY_GetTxPowerIndex(
	struct adapter *padapter,
	u8 RFPath,
	u8 Rate,
+0 −9
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ u8 Rate
	);

u8
PHY_GetTxPowerIndex_8723B(
PHY_GetTxPowerIndex(
struct adapter *		padapter,
u8 			RFPath,
u8 			Rate,