diff options
-rw-r--r-- | drivers/staging/vt6656/device.h | 6 | ||||
-rw-r--r-- | drivers/staging/vt6656/main_usb.c | 14 | ||||
-rw-r--r-- | drivers/staging/vt6656/usbpipe.c | 10 |
3 files changed, 15 insertions, 15 deletions
diff --git a/drivers/staging/vt6656/device.h b/drivers/staging/vt6656/device.h index ad43c6f931c2..8f318a9d8ba7 100644 --- a/drivers/staging/vt6656/device.h +++ b/drivers/staging/vt6656/device.h | |||
@@ -219,10 +219,10 @@ enum { | |||
219 | 219 | ||
220 | /* RCB (Receive Control Block) */ | 220 | /* RCB (Receive Control Block) */ |
221 | struct vnt_rcb { | 221 | struct vnt_rcb { |
222 | void *pDevice; | 222 | void *priv; |
223 | struct urb *pUrb; | 223 | struct urb *urb; |
224 | struct sk_buff *skb; | 224 | struct sk_buff *skb; |
225 | int bBoolInUse; | 225 | int in_use; |
226 | }; | 226 | }; |
227 | 227 | ||
228 | /* used to track bulk out irps */ | 228 | /* used to track bulk out irps */ |
diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index 06e4861123e2..be498bca13d6 100644 --- a/drivers/staging/vt6656/main_usb.c +++ b/drivers/staging/vt6656/main_usb.c | |||
@@ -423,9 +423,9 @@ static void device_free_rx_bufs(struct vnt_private *priv) | |||
423 | continue; | 423 | continue; |
424 | 424 | ||
425 | /* deallocate URBs */ | 425 | /* deallocate URBs */ |
426 | if (rcb->pUrb) { | 426 | if (rcb->urb) { |
427 | usb_kill_urb(rcb->pUrb); | 427 | usb_kill_urb(rcb->urb); |
428 | usb_free_urb(rcb->pUrb); | 428 | usb_free_urb(rcb->urb); |
429 | } | 429 | } |
430 | 430 | ||
431 | /* deallocate skb */ | 431 | /* deallocate skb */ |
@@ -495,11 +495,11 @@ static bool device_alloc_bufs(struct vnt_private *priv) | |||
495 | 495 | ||
496 | rcb = priv->apRCB[ii]; | 496 | rcb = priv->apRCB[ii]; |
497 | 497 | ||
498 | rcb->pDevice = priv; | 498 | rcb->priv = priv; |
499 | 499 | ||
500 | /* allocate URBs */ | 500 | /* allocate URBs */ |
501 | rcb->pUrb = usb_alloc_urb(0, GFP_ATOMIC); | 501 | rcb->urb = usb_alloc_urb(0, GFP_ATOMIC); |
502 | if (rcb->pUrb == NULL) { | 502 | if (rcb->urb == NULL) { |
503 | dev_err(&priv->usb->dev, "Failed to alloc rx urb\n"); | 503 | dev_err(&priv->usb->dev, "Failed to alloc rx urb\n"); |
504 | goto free_rx_tx; | 504 | goto free_rx_tx; |
505 | } | 505 | } |
@@ -510,7 +510,7 @@ static bool device_alloc_bufs(struct vnt_private *priv) | |||
510 | goto free_rx_tx; | 510 | goto free_rx_tx; |
511 | } | 511 | } |
512 | 512 | ||
513 | rcb->bBoolInUse = false; | 513 | rcb->in_use = false; |
514 | 514 | ||
515 | /* submit rx urb */ | 515 | /* submit rx urb */ |
516 | if (vnt_submit_rx_urb(priv, rcb)) | 516 | if (vnt_submit_rx_urb(priv, rcb)) |
diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c index d994b1b093ab..126294d1f1bb 100644 --- a/drivers/staging/vt6656/usbpipe.c +++ b/drivers/staging/vt6656/usbpipe.c | |||
@@ -187,7 +187,7 @@ int vnt_submit_rx_urb(struct vnt_private *priv, struct vnt_rcb *rcb) | |||
187 | int status = 0; | 187 | int status = 0; |
188 | struct urb *urb; | 188 | struct urb *urb; |
189 | 189 | ||
190 | urb = rcb->pUrb; | 190 | urb = rcb->urb; |
191 | if (rcb->skb == NULL) { | 191 | if (rcb->skb == NULL) { |
192 | dev_dbg(&priv->usb->dev, "rcb->skb is null\n"); | 192 | dev_dbg(&priv->usb->dev, "rcb->skb is null\n"); |
193 | return status; | 193 | return status; |
@@ -207,7 +207,7 @@ int vnt_submit_rx_urb(struct vnt_private *priv, struct vnt_rcb *rcb) | |||
207 | return STATUS_FAILURE ; | 207 | return STATUS_FAILURE ; |
208 | } | 208 | } |
209 | 209 | ||
210 | rcb->bBoolInUse = true; | 210 | rcb->in_use = true; |
211 | 211 | ||
212 | return status; | 212 | return status; |
213 | } | 213 | } |
@@ -215,7 +215,7 @@ int vnt_submit_rx_urb(struct vnt_private *priv, struct vnt_rcb *rcb) | |||
215 | static void vnt_submit_rx_urb_complete(struct urb *urb) | 215 | static void vnt_submit_rx_urb_complete(struct urb *urb) |
216 | { | 216 | { |
217 | struct vnt_rcb *rcb = urb->context; | 217 | struct vnt_rcb *rcb = urb->context; |
218 | struct vnt_private *priv = rcb->pDevice; | 218 | struct vnt_private *priv = rcb->priv; |
219 | unsigned long flags; | 219 | unsigned long flags; |
220 | 220 | ||
221 | switch (urb->status) { | 221 | switch (urb->status) { |
@@ -240,7 +240,7 @@ static void vnt_submit_rx_urb_complete(struct urb *urb) | |||
240 | dev_dbg(&priv->usb->dev, | 240 | dev_dbg(&priv->usb->dev, |
241 | "Failed to re-alloc rx skb\n"); | 241 | "Failed to re-alloc rx skb\n"); |
242 | 242 | ||
243 | rcb->bBoolInUse = false; | 243 | rcb->in_use = false; |
244 | spin_unlock_irqrestore(&priv->lock, flags); | 244 | spin_unlock_irqrestore(&priv->lock, flags); |
245 | return; | 245 | return; |
246 | } | 246 | } |
@@ -258,7 +258,7 @@ static void vnt_submit_rx_urb_complete(struct urb *urb) | |||
258 | if (usb_submit_urb(urb, GFP_ATOMIC)) { | 258 | if (usb_submit_urb(urb, GFP_ATOMIC)) { |
259 | dev_dbg(&priv->usb->dev, "Failed to re submit rx skb\n"); | 259 | dev_dbg(&priv->usb->dev, "Failed to re submit rx skb\n"); |
260 | 260 | ||
261 | rcb->bBoolInUse = false; | 261 | rcb->in_use = false; |
262 | } | 262 | } |
263 | 263 | ||
264 | return; | 264 | return; |