staging: vt6656: struct vnt_private pInterruptURB rename to interrupt_urb
authorMalcolm Priestley <tvboxspy@gmail.com>
Fri, 18 Jul 2014 05:36:14 +0000 (06:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jul 2014 23:06:23 +0000 (16:06 -0700)
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 8257a64..22554af 100644 (file)
@@ -284,7 +284,7 @@ struct vnt_private {
        unsigned long Flags;
 
        /* USB */
-       struct urb *pInterruptURB;
+       struct urb *interrupt_urb;
        u32 int_interval;
 
        /* Variables to track resources for the BULK In Pipe */
index be498bc..fe2f0bc 100644 (file)
@@ -517,8 +517,8 @@ static bool device_alloc_bufs(struct vnt_private *priv)
                        goto free_rx_tx;
        }
 
-       priv->pInterruptURB = usb_alloc_urb(0, GFP_ATOMIC);
-       if (priv->pInterruptURB == NULL) {
+       priv->interrupt_urb = usb_alloc_urb(0, GFP_ATOMIC);
+       if (priv->interrupt_urb == NULL) {
                dev_err(&priv->usb->dev, "Failed to alloc int urb\n");
                goto free_rx_tx;
        }
@@ -526,7 +526,7 @@ static bool device_alloc_bufs(struct vnt_private *priv)
        priv->int_buf.data_buf = kmalloc(MAX_INTERRUPT_SIZE, GFP_KERNEL);
        if (priv->int_buf.data_buf == NULL) {
                dev_err(&priv->usb->dev, "Failed to alloc int buf\n");
-               usb_free_urb(priv->pInterruptURB);
+               usb_free_urb(priv->interrupt_urb);
                goto free_rx_tx;
        }
 
@@ -590,8 +590,8 @@ free_all:
        device_free_tx_bufs(priv);
        device_free_int_bufs(priv);
 
-       usb_kill_urb(priv->pInterruptURB);
-       usb_free_urb(priv->pInterruptURB);
+       usb_kill_urb(priv->interrupt_urb);
+       usb_free_urb(priv->interrupt_urb);
 
        return -ENOMEM;
 }
@@ -629,8 +629,8 @@ static void vnt_stop(struct ieee80211_hw *hw)
        device_free_rx_bufs(priv);
        device_free_int_bufs(priv);
 
-       usb_kill_urb(priv->pInterruptURB);
-       usb_free_urb(priv->pInterruptURB);
+       usb_kill_urb(priv->interrupt_urb);
+       usb_free_urb(priv->interrupt_urb);
 
        return;
 }
index 126294d..9a88749 100644 (file)
@@ -126,7 +126,7 @@ int vnt_start_interrupt_urb(struct vnt_private *priv)
 
        priv->int_buf.in_use = true;
 
-       usb_fill_int_urb(priv->pInterruptURB,
+       usb_fill_int_urb(priv->interrupt_urb,
                priv->usb,
                usb_rcvintpipe(priv->usb, 1),
                priv->int_buf.data_buf,
@@ -135,7 +135,7 @@ int vnt_start_interrupt_urb(struct vnt_private *priv)
                priv,
                priv->int_interval);
 
-       status = usb_submit_urb(priv->pInterruptURB, GFP_ATOMIC);
+       status = usb_submit_urb(priv->interrupt_urb, GFP_ATOMIC);
        if (status) {
                dev_dbg(&priv->usb->dev, "Submit int URB failed %d\n", status);
                priv->int_buf.in_use = false;
@@ -172,7 +172,7 @@ static void vnt_start_interrupt_urb_complete(struct urb *urb)
                vnt_int_process_data(priv);
        }
 
-       status = usb_submit_urb(priv->pInterruptURB, GFP_ATOMIC);
+       status = usb_submit_urb(priv->interrupt_urb, GFP_ATOMIC);
        if (status) {
                dev_dbg(&priv->usb->dev, "Submit int URB failed %d\n", status);
        } else {