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

staging: vt6656: struct vnt_private rename cbRD to num_rcb

Number of rcb
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d71c77b1
...@@ -289,7 +289,7 @@ struct vnt_private { ...@@ -289,7 +289,7 @@ struct vnt_private {
/* Variables to track resources for the BULK In Pipe */ /* Variables to track resources for the BULK In Pipe */
struct vnt_rcb *rcb[CB_MAX_RX_DESC]; struct vnt_rcb *rcb[CB_MAX_RX_DESC];
u32 cbRD; u32 num_rcb;
/* Variables to track resources for the BULK Out Pipe */ /* Variables to track resources for the BULK Out Pipe */
struct vnt_usb_send_context *tx_context[CB_MAX_TX_DESC]; struct vnt_usb_send_context *tx_context[CB_MAX_TX_DESC];
......
...@@ -114,9 +114,9 @@ static void device_set_options(struct vnt_private *priv) ...@@ -114,9 +114,9 @@ static void device_set_options(struct vnt_private *priv)
/* Set number of RX buffers */ /* Set number of RX buffers */
if (vnt_rx_buffers < CB_MIN_RX_DESC || vnt_rx_buffers > CB_MAX_RX_DESC) if (vnt_rx_buffers < CB_MIN_RX_DESC || vnt_rx_buffers > CB_MAX_RX_DESC)
priv->cbRD = RX_DESC_DEF0; priv->num_rcb = RX_DESC_DEF0;
else else
priv->cbRD = vnt_rx_buffers; priv->num_rcb = vnt_rx_buffers;
priv->byShortRetryLimit = SHORT_RETRY_DEF; priv->byShortRetryLimit = SHORT_RETRY_DEF;
priv->byLongRetryLimit = LONG_RETRY_DEF; priv->byLongRetryLimit = LONG_RETRY_DEF;
...@@ -407,7 +407,7 @@ static void device_free_rx_bufs(struct vnt_private *priv) ...@@ -407,7 +407,7 @@ static void device_free_rx_bufs(struct vnt_private *priv)
struct vnt_rcb *rcb; struct vnt_rcb *rcb;
int ii; int ii;
for (ii = 0; ii < priv->cbRD; ii++) { for (ii = 0; ii < priv->num_rcb; ii++) {
rcb = priv->rcb[ii]; rcb = priv->rcb[ii];
if (!rcb) if (!rcb)
continue; continue;
...@@ -475,7 +475,7 @@ static bool device_alloc_bufs(struct vnt_private *priv) ...@@ -475,7 +475,7 @@ static bool device_alloc_bufs(struct vnt_private *priv)
tx_context->in_use = false; tx_context->in_use = false;
} }
for (ii = 0; ii < priv->cbRD; ii++) { for (ii = 0; ii < priv->num_rcb; ii++) {
priv->rcb[ii] = kzalloc(sizeof(struct vnt_rcb), GFP_KERNEL); priv->rcb[ii] = kzalloc(sizeof(struct vnt_rcb), GFP_KERNEL);
if (!priv->rcb[ii]) { if (!priv->rcb[ii]) {
dev_err(&priv->usb->dev, dev_err(&priv->usb->dev,
......
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