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;
}
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;
}
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;
}
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;
}
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,
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;
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 {