2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 21:54:06 +08:00

staging: rtl8192u: rename dwRegRead and rtStatus in r819xU_phy.c

This patch renames the following variables:
'dwRegRead' into 'reg'
'rtStatus'  into 'status'

This is done primarily to reduce line length below 80 chars,
since the size and the usage of dwRegRead variable
can be deduced by its type and the function called
to assign it, so it can be replaced by simply 'reg'.
Also, rtStatus is not more informative than just status
in the given context.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Xenia Ragiadakou 2013-06-23 06:15:17 +03:00 committed by Greg Kroah-Hartman
parent 08a4cdea19
commit a60d4d6896

View File

@ -709,7 +709,7 @@ u8 rtl8192_phy_checkBBAndRF(struct net_device *dev, HW90_BLOCK_E CheckBlock,
RF90_RADIO_PATH_E eRFPath) RF90_RADIO_PATH_E eRFPath)
{ {
u8 ret = 0; u8 ret = 0;
u32 i, CheckTimes = 4, dwRegRead = 0; u32 i, CheckTimes = 4, reg = 0;
u32 WriteAddr[4]; u32 WriteAddr[4];
u32 WriteData[] = {0xfffff027, 0xaa55a02f, 0x00000027, 0x55aa502f}; u32 WriteData[] = {0xfffff027, 0xaa55a02f, 0x00000027, 0x55aa502f};
/* Initialize register address offset to be checked */ /* Initialize register address offset to be checked */
@ -731,7 +731,7 @@ u8 rtl8192_phy_checkBBAndRF(struct net_device *dev, HW90_BLOCK_E CheckBlock,
case HW90_BLOCK_PHY1: case HW90_BLOCK_PHY1:
write_nic_dword(dev, WriteAddr[CheckBlock], write_nic_dword(dev, WriteAddr[CheckBlock],
WriteData[i]); WriteData[i]);
read_nic_dword(dev, WriteAddr[CheckBlock], &dwRegRead); read_nic_dword(dev, WriteAddr[CheckBlock], &reg);
break; break;
case HW90_BLOCK_RF: case HW90_BLOCK_RF:
@ -742,9 +742,9 @@ u8 rtl8192_phy_checkBBAndRF(struct net_device *dev, HW90_BLOCK_E CheckBlock,
/* TODO: we should not delay for such a long time. /* TODO: we should not delay for such a long time.
Ask SD3 */ Ask SD3 */
msleep(1); msleep(1);
dwRegRead = rtl8192_phy_QueryRFReg(dev, eRFPath, reg = rtl8192_phy_QueryRFReg(dev, eRFPath,
WriteAddr[HW90_BLOCK_RF], WriteAddr[HW90_BLOCK_RF],
bMask12Bits); bMask12Bits);
msleep(1); msleep(1);
break; break;
@ -755,10 +755,10 @@ u8 rtl8192_phy_checkBBAndRF(struct net_device *dev, HW90_BLOCK_E CheckBlock,
/* Check whether readback data is correct */ /* Check whether readback data is correct */
if (dwRegRead != WriteData[i]) { if (reg != WriteData[i]) {
RT_TRACE((COMP_PHY|COMP_ERR), RT_TRACE((COMP_PHY|COMP_ERR),
"error dwRegRead: %x, WriteData: %x\n", "error reg: %x, WriteData: %x\n",
dwRegRead, WriteData[i]); reg, WriteData[i]);
ret = 1; ret = 1;
break; break;
} }
@ -779,7 +779,7 @@ u8 rtl8192_phy_checkBBAndRF(struct net_device *dev, HW90_BLOCK_E CheckBlock,
void rtl8192_BB_Config_ParaFile(struct net_device *dev) void rtl8192_BB_Config_ParaFile(struct net_device *dev)
{ {
struct r8192_priv *priv = ieee80211_priv(dev); struct r8192_priv *priv = ieee80211_priv(dev);
u8 reg_u8 = 0, eCheckItem = 0, rtStatus = 0; u8 reg_u8 = 0, eCheckItem = 0, status = 0;
u32 reg_u32 = 0; u32 reg_u32 = 0;
/************************************** /**************************************
* <1> Initialize BaseBand * <1> Initialize BaseBand
@ -798,9 +798,9 @@ void rtl8192_BB_Config_ParaFile(struct net_device *dev)
for (eCheckItem = (HW90_BLOCK_E)HW90_BLOCK_PHY0; for (eCheckItem = (HW90_BLOCK_E)HW90_BLOCK_PHY0;
eCheckItem <= HW90_BLOCK_PHY1; eCheckItem++) { eCheckItem <= HW90_BLOCK_PHY1; eCheckItem++) {
/* don't care RF path */ /* don't care RF path */
rtStatus = rtl8192_phy_checkBBAndRF(dev, (HW90_BLOCK_E)eCheckItem, status = rtl8192_phy_checkBBAndRF(dev, (HW90_BLOCK_E)eCheckItem,
(RF90_RADIO_PATH_E)0); (RF90_RADIO_PATH_E)0);
if (rtStatus != 0) { if (status != 0) {
RT_TRACE((COMP_ERR | COMP_PHY), RT_TRACE((COMP_ERR | COMP_PHY),
"PHY_RF8256_Config(): Check PHY%d Fail!!\n", "PHY_RF8256_Config(): Check PHY%d Fail!!\n",
eCheckItem-1); eCheckItem-1);