Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Pavan Bobba and committed by
Greg Kroah-Hartman
84353aee 3ca35c28

+7 -7
+2 -2
drivers/staging/vt6655/card.c
··· 388 388 struct vnt_tx_desc *curr_td; 389 389 390 390 /* initialize TD index */ 391 - priv->apTailTD[0] = &priv->apTD0Rings[0]; 391 + priv->tail_td[0] = &priv->apTD0Rings[0]; 392 392 priv->apCurrTD[0] = &priv->apTD0Rings[0]; 393 393 394 - priv->apTailTD[1] = &priv->apTD1Rings[0]; 394 + priv->tail_td[1] = &priv->apTD1Rings[0]; 395 395 priv->apCurrTD[1] = &priv->apTD1Rings[0]; 396 396 397 397 for (uu = 0; uu < TYPE_MAXTD; uu++)
+1 -1
drivers/staging/vt6655/device.h
··· 133 133 volatile int iTDUsed[TYPE_MAXTD]; 134 134 135 135 struct vnt_tx_desc *apCurrTD[TYPE_MAXTD]; 136 - struct vnt_tx_desc *apTailTD[TYPE_MAXTD]; 136 + struct vnt_tx_desc *tail_td[TYPE_MAXTD]; 137 137 138 138 struct vnt_tx_desc *apTD0Rings; 139 139 struct vnt_tx_desc *apTD1Rings;
+4 -4
drivers/staging/vt6655/device_main.c
··· 737 737 738 738 if (i > 0) 739 739 priv->apTD0Rings[i - 1].next_desc = cpu_to_le32(priv->td0_pool_dma); 740 - priv->apTailTD[0] = priv->apCurrTD[0] = &priv->apTD0Rings[0]; 740 + priv->tail_td[0] = priv->apCurrTD[0] = &priv->apTD0Rings[0]; 741 741 742 742 return 0; 743 743 ··· 777 777 778 778 if (i > 0) 779 779 priv->apTD1Rings[i - 1].next_desc = cpu_to_le32(priv->td1_pool_dma); 780 - priv->apTailTD[1] = priv->apCurrTD[1] = &priv->apTD1Rings[0]; 780 + priv->tail_td[1] = priv->apCurrTD[1] = &priv->apTD1Rings[0]; 781 781 782 782 return 0; 783 783 ··· 969 969 unsigned char byTsr0; 970 970 unsigned char byTsr1; 971 971 972 - for (desc = priv->apTailTD[idx]; priv->iTDUsed[idx] > 0; desc = desc->next) { 972 + for (desc = priv->tail_td[idx]; priv->iTDUsed[idx] > 0; desc = desc->next) { 973 973 if (desc->td0.owner == OWNED_BY_NIC) 974 974 break; 975 975 if (works++ > 15) ··· 1007 1007 } 1008 1008 } 1009 1009 1010 - priv->apTailTD[idx] = desc; 1010 + priv->tail_td[idx] = desc; 1011 1011 1012 1012 return works; 1013 1013 }