Commit 3d582487 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: struct vnt_private pInterruptURB rename to interrupt_urb

Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 421ce4e5
......@@ -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 */
......
......@@ -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 @@ static int vnt_start(struct ieee80211_hw *hw)
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;
}
......
......@@ -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 {
......
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