staging: vt6656: PSbIsNextTBTTWakeUp remove camel case
authorMalcolm Priestley <tvboxspy@gmail.com>
Wed, 4 Jun 2014 17:25:23 +0000 (18:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:59:49 +0000 (15:59 -0700)
camel case changes
pDevice -> priv
pMgmt -> mgmt
bWakeup -> wake_up

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/power.c

index b7c2720827b5cc6797297952c7bb1d199742ed01..7f603724ee9ec13a61e18625a3d9b8ec48baf551 100644 (file)
@@ -312,27 +312,27 @@ int PSbSendNullPacket(struct vnt_private *pDevice)
  *
  */
 
-int PSbIsNextTBTTWakeUp(struct vnt_private *pDevice)
+int PSbIsNextTBTTWakeUp(struct vnt_private *priv)
 {
-       struct vnt_manager *pMgmt = &pDevice->vnt_mgmt;
-       int bWakeUp = false;
+       struct vnt_manager *mgmt = &priv->vnt_mgmt;
+       int wake_up = false;
 
-       if (pMgmt->wListenInterval >= 2) {
-               if (pMgmt->wCountToWakeUp == 0)
-                       pMgmt->wCountToWakeUp = pMgmt->wListenInterval;
+       if (mgmt->wListenInterval >= 2) {
+               if (mgmt->wCountToWakeUp == 0)
+                       mgmt->wCountToWakeUp = mgmt->wListenInterval;
 
-               pMgmt->wCountToWakeUp--;
+               mgmt->wCountToWakeUp--;
 
-               if (pMgmt->wCountToWakeUp == 1) {
+               if (mgmt->wCountToWakeUp == 1) {
                        /* Turn on wake up to listen next beacon */
-                       vnt_mac_reg_bits_on(pDevice, MAC_REG_PSCTL, PSCTL_LNBCN);
-                       pDevice->bPSRxBeacon = false;
-                       bWakeUp = true;
-               } else if (!pDevice->bPSRxBeacon) {
+                       vnt_mac_reg_bits_on(priv, MAC_REG_PSCTL, PSCTL_LNBCN);
+                       priv->bPSRxBeacon = false;
+                       wake_up = true;
+               } else if (!priv->bPSRxBeacon) {
                        /* Listen until RxBeacon */
-                       vnt_mac_reg_bits_on(pDevice, MAC_REG_PSCTL, PSCTL_LNBCN);
+                       vnt_mac_reg_bits_on(priv, MAC_REG_PSCTL, PSCTL_LNBCN);
                }
        }
-       return bWakeUp;
+       return wake_up;
 }