mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-01 00:02:19 -04:00
staging: r8188eu: remove path parameter from phy_RFSerialWrite
The only caller of phy_RFSerialWrite sets the eRFPath parameter to RF_PATH_A. Remove the parameter and use RF_PATH_A directly. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220212161737.381841-5-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e7fd55f6c1
commit
138a2ff3cc
@@ -217,14 +217,13 @@ phy_RFSerialRead(
|
||||
static void
|
||||
phy_RFSerialWrite(
|
||||
struct adapter *Adapter,
|
||||
enum rf_radio_path eRFPath,
|
||||
u32 Offset,
|
||||
u32 Data
|
||||
)
|
||||
{
|
||||
u32 DataAndAddr = 0;
|
||||
struct hal_data_8188e *pHalData = &Adapter->haldata;
|
||||
struct bb_reg_def *pPhyReg = &pHalData->PHYRegDef[eRFPath];
|
||||
struct bb_reg_def *pPhyReg = &pHalData->PHYRegDef[RF_PATH_A];
|
||||
u32 NewOffset;
|
||||
|
||||
/* 2009/06/17 MH We can not execute IO for power save or other accident mode. */
|
||||
@@ -309,7 +308,7 @@ rtl8188e_PHY_SetRFReg(
|
||||
Data = ((Original_Value & (~BitMask)) | (Data << BitShift));
|
||||
}
|
||||
|
||||
phy_RFSerialWrite(Adapter, RF_PATH_A, RegAddr, Data);
|
||||
phy_RFSerialWrite(Adapter, RegAddr, Data);
|
||||
}
|
||||
|
||||
/* */
|
||||
|
||||
Reference in New Issue
Block a user