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

staging: vt6656: struct vnt_private rename apTD to tx_context

Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8577011c
...@@ -292,7 +292,7 @@ struct vnt_private { ...@@ -292,7 +292,7 @@ struct vnt_private {
u32 cbRD; u32 cbRD;
/* Variables to track resources for the BULK Out Pipe */ /* Variables to track resources for the BULK Out Pipe */
struct vnt_usb_send_context *apTD[CB_MAX_TX_DESC]; struct vnt_usb_send_context *tx_context[CB_MAX_TX_DESC];
u32 cbTD; u32 cbTD;
/* Variables to track resources for the Interrupt In Pipe */ /* Variables to track resources for the Interrupt In Pipe */
......
...@@ -78,7 +78,7 @@ static int vnt_int_report_rate(struct vnt_private *priv, u8 pkt_no, u8 tsr) ...@@ -78,7 +78,7 @@ static int vnt_int_report_rate(struct vnt_private *priv, u8 pkt_no, u8 tsr)
if (pkt_no >= priv->cbTD) if (pkt_no >= priv->cbTD)
return -EINVAL; return -EINVAL;
context = priv->apTD[pkt_no]; context = priv->tx_context[pkt_no];
if (!context->skb) if (!context->skb)
return -EINVAL; return -EINVAL;
......
...@@ -399,7 +399,7 @@ static void device_free_tx_bufs(struct vnt_private *priv) ...@@ -399,7 +399,7 @@ static void device_free_tx_bufs(struct vnt_private *priv)
int ii; int ii;
for (ii = 0; ii < priv->cbTD; ii++) { for (ii = 0; ii < priv->cbTD; ii++) {
tx_context = priv->apTD[ii]; tx_context = priv->tx_context[ii];
/* deallocate URBs */ /* deallocate URBs */
if (tx_context->urb) { if (tx_context->urb) {
usb_kill_urb(tx_context->urb); usb_kill_urb(tx_context->urb);
...@@ -471,7 +471,7 @@ static bool device_alloc_bufs(struct vnt_private *priv) ...@@ -471,7 +471,7 @@ static bool device_alloc_bufs(struct vnt_private *priv)
goto free_tx; goto free_tx;
} }
priv->apTD[ii] = tx_context; priv->tx_context[ii] = tx_context;
tx_context->priv = priv; tx_context->priv = priv;
tx_context->pkt_no = ii; tx_context->pkt_no = ii;
......
...@@ -82,10 +82,10 @@ static struct vnt_usb_send_context ...@@ -82,10 +82,10 @@ static struct vnt_usb_send_context
dev_dbg(&priv->usb->dev, "%s\n", __func__); dev_dbg(&priv->usb->dev, "%s\n", __func__);
for (ii = 0; ii < priv->cbTD; ii++) { for (ii = 0; ii < priv->cbTD; ii++) {
if (!priv->apTD[ii]) if (!priv->tx_context[ii])
return NULL; return NULL;
context = priv->apTD[ii]; context = priv->tx_context[ii];
if (context->in_use == false) { if (context->in_use == false) {
context->in_use = true; context->in_use = true;
memset(context->data, 0, memset(context->data, 0,
......
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