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

staging: vt6656: camel case clean up CARDbRadioPowerOff

camel case changes
pDevice -> priv
bResult -> ret
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8b515de7
...@@ -766,38 +766,36 @@ void CARDvUpdateNextTBTT(struct vnt_private *priv, u64 tsf, ...@@ -766,38 +766,36 @@ void CARDvUpdateNextTBTT(struct vnt_private *priv, u64 tsf,
* *
* Parameters: * Parameters:
* In: * In:
* pDevice - The adapter to be turned off * priv - The adapter to be turned off
* Out: * Out:
* none * none
* *
* Return Value: true if success; otherwise false * Return Value: true if success; otherwise false
* *
*/ */
int CARDbRadioPowerOff(struct vnt_private *pDevice) int CARDbRadioPowerOff(struct vnt_private *priv)
{ {
int bResult = true; int ret = true;
//if (pDevice->bRadioOff == true) priv->bRadioOff = true;
// return true;
switch (priv->byRFType) {
pDevice->bRadioOff = true; case RF_AL2230:
case RF_AL2230S:
switch (pDevice->byRFType) { case RF_AIROHA7230:
case RF_AL2230: case RF_VT3226:
case RF_AL2230S: case RF_VT3226D0:
case RF_AIROHA7230: case RF_VT3342A0:
case RF_VT3226: //RobertYu:20051111 MACvRegBitsOff(priv, MAC_REG_SOFTPWRCTL,
case RF_VT3226D0: (SOFTPWRCTL_SWPE2 | SOFTPWRCTL_SWPE3));
case RF_VT3342A0: //RobertYu:20060609 break;
MACvRegBitsOff(pDevice, MAC_REG_SOFTPWRCTL, (SOFTPWRCTL_SWPE2 | SOFTPWRCTL_SWPE3)); }
break;
}
MACvRegBitsOff(pDevice, MAC_REG_HOSTCR, HOSTCR_RXON); MACvRegBitsOff(priv, MAC_REG_HOSTCR, HOSTCR_RXON);
BBvSetDeepSleep(pDevice); BBvSetDeepSleep(priv);
return bResult; return ret;
} }
/* /*
......
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