mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
staging: vt6655: Type encoding info dropped from variable name "apTailTD"
variable name "apTailTD" updated like below: a.type encoding info dropped from name b.camelcase name replaced by snakecase Issue found by checkpatch Signed-off-by: Pavan Bobba <opensource206@gmail.com> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/482553f089fe86dc7ebecd96c9397cfaa9c7bdf9.1698730318.git.opensource206@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3ca35c2816
commit
84353aeeb5
3 changed files with 7 additions and 7 deletions
|
@ -388,10 +388,10 @@ void card_safe_reset_tx(struct vnt_private *priv)
|
||||||
struct vnt_tx_desc *curr_td;
|
struct vnt_tx_desc *curr_td;
|
||||||
|
|
||||||
/* initialize TD index */
|
/* initialize TD index */
|
||||||
priv->apTailTD[0] = &priv->apTD0Rings[0];
|
priv->tail_td[0] = &priv->apTD0Rings[0];
|
||||||
priv->apCurrTD[0] = &priv->apTD0Rings[0];
|
priv->apCurrTD[0] = &priv->apTD0Rings[0];
|
||||||
|
|
||||||
priv->apTailTD[1] = &priv->apTD1Rings[0];
|
priv->tail_td[1] = &priv->apTD1Rings[0];
|
||||||
priv->apCurrTD[1] = &priv->apTD1Rings[0];
|
priv->apCurrTD[1] = &priv->apTD1Rings[0];
|
||||||
|
|
||||||
for (uu = 0; uu < TYPE_MAXTD; uu++)
|
for (uu = 0; uu < TYPE_MAXTD; uu++)
|
||||||
|
|
|
@ -133,7 +133,7 @@ struct vnt_private {
|
||||||
volatile int iTDUsed[TYPE_MAXTD];
|
volatile int iTDUsed[TYPE_MAXTD];
|
||||||
|
|
||||||
struct vnt_tx_desc *apCurrTD[TYPE_MAXTD];
|
struct vnt_tx_desc *apCurrTD[TYPE_MAXTD];
|
||||||
struct vnt_tx_desc *apTailTD[TYPE_MAXTD];
|
struct vnt_tx_desc *tail_td[TYPE_MAXTD];
|
||||||
|
|
||||||
struct vnt_tx_desc *apTD0Rings;
|
struct vnt_tx_desc *apTD0Rings;
|
||||||
struct vnt_tx_desc *apTD1Rings;
|
struct vnt_tx_desc *apTD1Rings;
|
||||||
|
|
|
@ -737,7 +737,7 @@ static int device_init_td0_ring(struct vnt_private *priv)
|
||||||
|
|
||||||
if (i > 0)
|
if (i > 0)
|
||||||
priv->apTD0Rings[i - 1].next_desc = cpu_to_le32(priv->td0_pool_dma);
|
priv->apTD0Rings[i - 1].next_desc = cpu_to_le32(priv->td0_pool_dma);
|
||||||
priv->apTailTD[0] = priv->apCurrTD[0] = &priv->apTD0Rings[0];
|
priv->tail_td[0] = priv->apCurrTD[0] = &priv->apTD0Rings[0];
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -777,7 +777,7 @@ static int device_init_td1_ring(struct vnt_private *priv)
|
||||||
|
|
||||||
if (i > 0)
|
if (i > 0)
|
||||||
priv->apTD1Rings[i - 1].next_desc = cpu_to_le32(priv->td1_pool_dma);
|
priv->apTD1Rings[i - 1].next_desc = cpu_to_le32(priv->td1_pool_dma);
|
||||||
priv->apTailTD[1] = priv->apCurrTD[1] = &priv->apTD1Rings[0];
|
priv->tail_td[1] = priv->apCurrTD[1] = &priv->apTD1Rings[0];
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -969,7 +969,7 @@ static int device_tx_srv(struct vnt_private *priv, unsigned int idx)
|
||||||
unsigned char byTsr0;
|
unsigned char byTsr0;
|
||||||
unsigned char byTsr1;
|
unsigned char byTsr1;
|
||||||
|
|
||||||
for (desc = priv->apTailTD[idx]; priv->iTDUsed[idx] > 0; desc = desc->next) {
|
for (desc = priv->tail_td[idx]; priv->iTDUsed[idx] > 0; desc = desc->next) {
|
||||||
if (desc->td0.owner == OWNED_BY_NIC)
|
if (desc->td0.owner == OWNED_BY_NIC)
|
||||||
break;
|
break;
|
||||||
if (works++ > 15)
|
if (works++ > 15)
|
||||||
|
@ -1007,7 +1007,7 @@ static int device_tx_srv(struct vnt_private *priv, unsigned int idx)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
priv->apTailTD[idx] = desc;
|
priv->tail_td[idx] = desc;
|
||||||
|
|
||||||
return works;
|
return works;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue