staging: rtl8723bs: Replace function odm_TXPowerTrackingInit()
Remove function odm_TXPowerTrackingInit as all it does is call odm_TXPowerTrackingThermalMeterInit. Rename odm_TXPowerTrackingThermalMeterInit to odm_TXPowerTrackingInit to maintain compatibility with call sites. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Link: https://lore.kernel.org/r/20190725052645.2372-7-nishkadg.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d40e29d7e2
commit
4e8cc1c2df
|
@ -339,8 +339,6 @@ void ODM_TXPowerTrackingCheck(PDM_ODM_T pDM_Odm);
|
|||
|
||||
void odm_RateAdaptiveMaskInit(PDM_ODM_T pDM_Odm);
|
||||
|
||||
void odm_TXPowerTrackingThermalMeterInit(PDM_ODM_T pDM_Odm);
|
||||
|
||||
|
||||
void odm_TXPowerTrackingInit(PDM_ODM_T pDM_Odm);
|
||||
|
||||
|
@ -1324,11 +1322,6 @@ void odm_RSSIMonitorCheckCE(PDM_ODM_T pDM_Odm)
|
|||
/* 3 Tx Power Tracking */
|
||||
/* 3 ============================================================ */
|
||||
|
||||
void odm_TXPowerTrackingInit(PDM_ODM_T pDM_Odm)
|
||||
{
|
||||
odm_TXPowerTrackingThermalMeterInit(pDM_Odm);
|
||||
}
|
||||
|
||||
static u8 getSwingIndex(PDM_ODM_T pDM_Odm)
|
||||
{
|
||||
struct adapter *Adapter = pDM_Odm->Adapter;
|
||||
|
@ -1353,7 +1346,7 @@ static u8 getSwingIndex(PDM_ODM_T pDM_Odm)
|
|||
return i;
|
||||
}
|
||||
|
||||
void odm_TXPowerTrackingThermalMeterInit(PDM_ODM_T pDM_Odm)
|
||||
void odm_TXPowerTrackingInit(PDM_ODM_T pDM_Odm)
|
||||
{
|
||||
u8 defaultSwingIndex = getSwingIndex(pDM_Odm);
|
||||
u8 p = 0;
|
||||
|
|
Loading…
Reference in New Issue