]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: vt6656: Clean up and remove camel case INTnsProcessData.
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 16 Feb 2014 19:10:18 +0000 (19:10 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Feb 2014 18:59:35 +0000 (10:59 -0800)
Camel Case changes
pDevice -> priv
pINTData -> int_data
pStats -> stats

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

index 0094887d4d529c86cda955f51bc4912c4a9e51c8..ec135b466ddddaf9a4a8bea21e00624d5430ac2a 100644 (file)
@@ -75,112 +75,111 @@ void INTvWorkItem(struct vnt_private *pDevice)
        spin_unlock_irq(&pDevice->lock);
 }
 
-void INTnsProcessData(struct vnt_private *pDevice)
+void INTnsProcessData(struct vnt_private *priv)
 {
-       struct vnt_interrupt_data *pINTData;
-       struct vnt_manager *pMgmt = &pDevice->vnt_mgmt;
-       struct net_device_stats *pStats = &pDevice->stats;
+       struct vnt_interrupt_data *int_data;
+       struct vnt_manager *mgmt = &priv->vnt_mgmt;
+       struct net_device_stats *stats = &priv->stats;
 
        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->s_nsInterruptProcessData\n");
 
-       pINTData = (struct vnt_interrupt_data *)pDevice->intBuf.pDataBuf;
-       if (pINTData->tsr0 & TSR_VALID) {
-               if (pINTData->tsr0 & (TSR_TMO | TSR_RETRYTMO))
-                       pDevice->wstats.discard.retries++;
+       int_data = (struct vnt_interrupt_data *)priv->intBuf.pDataBuf;
+
+       if (int_data->tsr0 & TSR_VALID) {
+               if (int_data->tsr0 & (TSR_TMO | TSR_RETRYTMO))
+                       priv->wstats.discard.retries++;
                else
-                       pStats->tx_packets++;
+                       stats->tx_packets++;
 
-               BSSvUpdateNodeTxCounter(pDevice,
-                                       pINTData->tsr0,
-                                       pINTData->pkt0);
+               BSSvUpdateNodeTxCounter(priv,
+                                       int_data->tsr0,
+                                       int_data->pkt0);
        }
-       if (pINTData->tsr1 & TSR_VALID) {
-               if (pINTData->tsr1 & (TSR_TMO | TSR_RETRYTMO))
-                       pDevice->wstats.discard.retries++;
+
+       if (int_data->tsr1 & TSR_VALID) {
+               if (int_data->tsr1 & (TSR_TMO | TSR_RETRYTMO))
+                       priv->wstats.discard.retries++;
                else
-                       pStats->tx_packets++;
+                       stats->tx_packets++;
 
 
-               BSSvUpdateNodeTxCounter(pDevice,
-                                       pINTData->tsr1,
-                                       pINTData->pkt1);
+               BSSvUpdateNodeTxCounter(priv,
+                                       int_data->tsr1,
+                                       int_data->pkt1);
        }
-       if (pINTData->tsr2 & TSR_VALID) {
-               if (pINTData->tsr2 & (TSR_TMO | TSR_RETRYTMO))
-                       pDevice->wstats.discard.retries++;
+
+       if (int_data->tsr2 & TSR_VALID) {
+               if (int_data->tsr2 & (TSR_TMO | TSR_RETRYTMO))
+                       priv->wstats.discard.retries++;
                else
-                       pStats->tx_packets++;
+                       stats->tx_packets++;
 
-               BSSvUpdateNodeTxCounter(pDevice,
-                                       pINTData->tsr2,
-                                       pINTData->pkt2);
-               /*DBG_PRN_GRP01(("TSR2 %02x\n", pINTData->byTSR2));*/
+               BSSvUpdateNodeTxCounter(priv,
+                                       int_data->tsr2,
+                                       int_data->pkt2);
        }
-       if (pINTData->tsr3 & TSR_VALID) {
-               if (pINTData->tsr3 & (TSR_TMO | TSR_RETRYTMO))
-                       pDevice->wstats.discard.retries++;
+
+       if (int_data->tsr3 & TSR_VALID) {
+               if (int_data->tsr3 & (TSR_TMO | TSR_RETRYTMO))
+                       priv->wstats.discard.retries++;
                else
-                       pStats->tx_packets++;
+                       stats->tx_packets++;
 
-               BSSvUpdateNodeTxCounter(pDevice,
-                                       pINTData->tsr3,
-                                       pINTData->pkt3);
-               /*DBG_PRN_GRP01(("TSR3 %02x\n", pINTData->byTSR3));*/
+               BSSvUpdateNodeTxCounter(priv,
+                                       int_data->tsr3,
+                                       int_data->pkt3);
        }
-       if (pINTData->isr0 != 0) {
-               if (pINTData->isr0 & ISR_BNTX) {
-                       if (pDevice->op_mode == NL80211_IFTYPE_AP) {
-                               if (pMgmt->byDTIMCount > 0) {
-                                       pMgmt->byDTIMCount--;
-                                       pMgmt->sNodeDBTable[0].bRxPSPoll =
+
+       if (int_data->isr0 != 0) {
+               if (int_data->isr0 & ISR_BNTX) {
+                       if (priv->op_mode == NL80211_IFTYPE_AP) {
+                               if (mgmt->byDTIMCount > 0) {
+                                       mgmt->byDTIMCount--;
+                                       mgmt->sNodeDBTable[0].bRxPSPoll =
                                                false;
-                               } else if (pMgmt->byDTIMCount == 0) {
+                               } else if (mgmt->byDTIMCount == 0) {
                                        /* check if multicast tx buffering */
-                                       pMgmt->byDTIMCount =
-                                               pMgmt->byDTIMPeriod-1;
-                                       pMgmt->sNodeDBTable[0].bRxPSPoll = true;
-                                       if (pMgmt->sNodeDBTable[0].bPSEnable)
-                                               bScheduleCommand((void *) pDevice,
+                                       mgmt->byDTIMCount =
+                                               mgmt->byDTIMPeriod-1;
+                                       mgmt->sNodeDBTable[0].bRxPSPoll = true;
+                                       if (mgmt->sNodeDBTable[0].bPSEnable)
+                                               bScheduleCommand((void *) priv,
                                                                 WLAN_CMD_RX_PSPOLL,
                                                                 NULL);
                                }
-                               bScheduleCommand((void *) pDevice,
+                               bScheduleCommand((void *) priv,
                                                WLAN_CMD_BECON_SEND,
                                                NULL);
                        }
-               pDevice->bBeaconSent = true;
+                       priv->bBeaconSent = true;
                } else {
-                       pDevice->bBeaconSent = false;
+                       priv->bBeaconSent = false;
                }
-               if (pINTData->isr0 & ISR_TBTT) {
-                       if (pDevice->bEnablePSMode)
-                               bScheduleCommand((void *) pDevice,
+
+               if (int_data->isr0 & ISR_TBTT) {
+                       if (priv->bEnablePSMode)
+                               bScheduleCommand((void *) priv,
                                                WLAN_CMD_TBTT_WAKEUP,
                                                NULL);
-                       if (pDevice->bChannelSwitch) {
-                               pDevice->byChannelSwitchCount--;
-                               if (pDevice->byChannelSwitchCount == 0)
-                                       bScheduleCommand((void *) pDevice,
+                       if (priv->bChannelSwitch) {
+                               priv->byChannelSwitchCount--;
+                               if (priv->byChannelSwitchCount == 0)
+                                       bScheduleCommand((void *) priv,
                                                        WLAN_CMD_11H_CHSW,
                                                        NULL);
                        }
                }
-               pDevice->qwCurrTSF = le64_to_cpu(pINTData->tsf);
-               /*DBG_PRN_GRP01(("ISR0 = %02x ,
-                 LoTsf =  %08x,
-                 HiTsf =  %08x\n",
-                 pINTData->byISR0,
-                 pINTData->dwLoTSF,
-                 pINTData->dwHiTSF)); */
+               priv->qwCurrTSF = le64_to_cpu(int_data->tsf);
        }
-       if (pINTData->isr1 != 0)
-               if (pINTData->isr1 & ISR_GPIO3)
-                       bScheduleCommand((void *) pDevice,
+
+       if (int_data->isr1 != 0)
+               if (int_data->isr1 & ISR_GPIO3)
+                       bScheduleCommand((void *) priv,
                                        WLAN_CMD_RADIO,
                                        NULL);
-       pDevice->intBuf.uDataLen = 0;
-       pDevice->intBuf.bInUse = false;
+       priv->intBuf.uDataLen = 0;
+       priv->intBuf.bInUse = false;
 
-       pStats->tx_errors = pDevice->wstats.discard.retries;
-       pStats->tx_dropped = pDevice->wstats.discard.retries;
+       stats->tx_errors = priv->wstats.discard.retries;
+       stats->tx_dropped = priv->wstats.discard.retries;
 }