Commit a628747f authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: rf.c: RFbSetPower Remove camel case and clean up.

White space clean up.

Camel case changes;
pDevice -> priv
uRATE -> rate
uCH -> channel
bResult -> ret
byPwr -> power

No functional changes.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d6bbce06
...@@ -732,42 +732,41 @@ int IFRFbWriteEmbedded(struct vnt_private *pDevice, u32 dwData) ...@@ -732,42 +732,41 @@ int IFRFbWriteEmbedded(struct vnt_private *pDevice, u32 dwData)
* Return Value: true if succeeded; false if failed. * Return Value: true if succeeded; false if failed.
* *
*/ */
int RFbSetPower(struct vnt_private *pDevice, u32 uRATE, u32 uCH) int RFbSetPower(struct vnt_private *priv, u32 rate, u32 channel)
{ {
int bResult = true; int ret = true;
u8 byPwr = pDevice->byCCKPwr; u8 power = priv->byCCKPwr;
if (pDevice->dwDiagRefCount) if (priv->dwDiagRefCount)
return true; return true;
if (uCH == 0) if (channel == 0)
return -EINVAL; return -EINVAL;
switch (uRATE) { switch (rate) {
case RATE_1M: case RATE_1M:
case RATE_2M: case RATE_2M:
case RATE_5M: case RATE_5M:
case RATE_11M: case RATE_11M:
byPwr = pDevice->abyCCKPwrTbl[uCH-1]; power = priv->abyCCKPwrTbl[channel-1];
break; break;
case RATE_6M: case RATE_6M:
case RATE_9M: case RATE_9M:
case RATE_18M: case RATE_18M:
case RATE_24M: case RATE_24M:
case RATE_36M: case RATE_36M:
case RATE_48M: case RATE_48M:
case RATE_54M: case RATE_54M:
if (uCH > CB_MAX_CHANNEL_24G) { if (channel > CB_MAX_CHANNEL_24G)
byPwr = pDevice->abyOFDMAPwrTbl[uCH-15]; power = priv->abyOFDMAPwrTbl[channel-15];
} else { else
byPwr = pDevice->abyOFDMPwrTbl[uCH-1]; power = priv->abyOFDMPwrTbl[channel-1];
} break;
break; }
}
ret = RFbRawSetPower(priv, power, rate);
bResult = RFbRawSetPower(pDevice, byPwr, uRATE);
return ret;
return bResult;
} }
/* /*
......
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