staging: vt6656: struct vnt_rcb remove camel case
authorMalcolm Priestley <tvboxspy@gmail.com>
Fri, 18 Jul 2014 05:36:11 +0000 (06:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jul 2014 23:06:23 +0000 (16:06 -0700)
Camel case changes
pDevice -> priv
pUrb -> urb
bBoolInUse -> in_use

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

index ad43c6f931c2b9970e71d3e59a8b2cb6612dff6a..8f318a9d8ba755f005668f5abd462546c014b879 100644 (file)
@@ -219,10 +219,10 @@ enum {
 
 /* RCB (Receive Control Block) */
 struct vnt_rcb {
-       void *pDevice;
-       struct urb *pUrb;
+       void *priv;
+       struct urb *urb;
        struct sk_buff *skb;
-       int bBoolInUse;
+       int in_use;
 };
 
 /* used to track bulk out irps */
index 06e4861123e2a2e400ab3684976a26950ad0f360..be498bca13d68afc799b08202a46e87841ee2dba 100644 (file)
@@ -423,9 +423,9 @@ static void device_free_rx_bufs(struct vnt_private *priv)
                        continue;
 
                /* deallocate URBs */
-               if (rcb->pUrb) {
-                       usb_kill_urb(rcb->pUrb);
-                       usb_free_urb(rcb->pUrb);
+               if (rcb->urb) {
+                       usb_kill_urb(rcb->urb);
+                       usb_free_urb(rcb->urb);
                }
 
                /* deallocate skb */
@@ -495,11 +495,11 @@ static bool device_alloc_bufs(struct vnt_private *priv)
 
                rcb = priv->apRCB[ii];
 
-               rcb->pDevice = priv;
+               rcb->priv = priv;
 
                /* allocate URBs */
-               rcb->pUrb = usb_alloc_urb(0, GFP_ATOMIC);
-               if (rcb->pUrb == NULL) {
+               rcb->urb = usb_alloc_urb(0, GFP_ATOMIC);
+               if (rcb->urb == NULL) {
                        dev_err(&priv->usb->dev, "Failed to alloc rx urb\n");
                        goto free_rx_tx;
                }
@@ -510,7 +510,7 @@ static bool device_alloc_bufs(struct vnt_private *priv)
                        goto free_rx_tx;
                }
 
-               rcb->bBoolInUse = false;
+               rcb->in_use = false;
 
                /* submit rx urb */
                if (vnt_submit_rx_urb(priv, rcb))
index d994b1b093ab87133adf751e86369923208eda43..126294d1f1bb788569c6f3ec3e0880689ed79a79 100644 (file)
@@ -187,7 +187,7 @@ int vnt_submit_rx_urb(struct vnt_private *priv, struct vnt_rcb *rcb)
        int status = 0;
        struct urb *urb;
 
-       urb = rcb->pUrb;
+       urb = rcb->urb;
        if (rcb->skb == NULL) {
                dev_dbg(&priv->usb->dev, "rcb->skb is null\n");
                return status;
@@ -207,7 +207,7 @@ int vnt_submit_rx_urb(struct vnt_private *priv, struct vnt_rcb *rcb)
                return STATUS_FAILURE ;
        }
 
-       rcb->bBoolInUse = true;
+       rcb->in_use = true;
 
        return status;
 }
@@ -215,7 +215,7 @@ int vnt_submit_rx_urb(struct vnt_private *priv, struct vnt_rcb *rcb)
 static void vnt_submit_rx_urb_complete(struct urb *urb)
 {
        struct vnt_rcb *rcb = urb->context;
-       struct vnt_private *priv = rcb->pDevice;
+       struct vnt_private *priv = rcb->priv;
        unsigned long flags;
 
        switch (urb->status) {
@@ -240,7 +240,7 @@ static void vnt_submit_rx_urb_complete(struct urb *urb)
                                dev_dbg(&priv->usb->dev,
                                        "Failed to re-alloc rx skb\n");
 
-                               rcb->bBoolInUse = false;
+                               rcb->in_use = false;
                                spin_unlock_irqrestore(&priv->lock, flags);
                                return;
                        }
@@ -258,7 +258,7 @@ static void vnt_submit_rx_urb_complete(struct urb *urb)
        if (usb_submit_urb(urb, GFP_ATOMIC)) {
                dev_dbg(&priv->usb->dev, "Failed to re submit rx skb\n");
 
-               rcb->bBoolInUse = false;
+               rcb->in_use = false;
        }
 
        return;