[PATCH 1/7] staging: vt6655: Rename variable apCurrTD

From: Xingquan Liu
Date: Fri Sep 20 2024 - 12:20:57 EST


Rename variable apCurrTD to ap_curr_td to fix checkpatch warning
Avoid CamelCase.

Signed-off-by: Xingquan Liu <b1n@xxxxxx>
---
drivers/staging/vt6655/card.c | 4 ++--
drivers/staging/vt6655/device.h | 2 +-
drivers/staging/vt6655/device_main.c | 8 ++++----
3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/vt6655/card.c b/drivers/staging/vt6655/card.c
index 6a2e390e9493..3b7284a23479 100644
--- a/drivers/staging/vt6655/card.c
+++ b/drivers/staging/vt6655/card.c
@@ -389,10 +389,10 @@ void card_safe_reset_tx(struct vnt_private *priv)

/* initialize TD index */
priv->tail_td[0] = &priv->ap_td0_rings[0];
- priv->apCurrTD[0] = &priv->ap_td0_rings[0];
+ priv->ap_curr_td[0] = &priv->ap_td0_rings[0];

priv->tail_td[1] = &priv->ap_td1_rings[0];
- priv->apCurrTD[1] = &priv->ap_td1_rings[0];
+ priv->ap_curr_td[1] = &priv->ap_td1_rings[0];

for (uu = 0; uu < TYPE_MAXTD; uu++)
priv->iTDUsed[uu] = 0;
diff --git a/drivers/staging/vt6655/device.h b/drivers/staging/vt6655/device.h
index 5eaab6b172d3..f4e14c65b1a8 100644
--- a/drivers/staging/vt6655/device.h
+++ b/drivers/staging/vt6655/device.h
@@ -132,7 +132,7 @@ struct vnt_private {

volatile int iTDUsed[TYPE_MAXTD];

- struct vnt_tx_desc *apCurrTD[TYPE_MAXTD];
+ struct vnt_tx_desc *ap_curr_td[TYPE_MAXTD];
struct vnt_tx_desc *tail_td[TYPE_MAXTD];

struct vnt_tx_desc *ap_td0_rings;
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c
index bf3ecf720206..052ebe0095a5 100644
--- a/drivers/staging/vt6655/device_main.c
+++ b/drivers/staging/vt6655/device_main.c
@@ -737,7 +737,7 @@ static int device_init_td0_ring(struct vnt_private *priv)

if (i > 0)
priv->ap_td0_rings[i - 1].next_desc = cpu_to_le32(priv->td0_pool_dma);
- priv->tail_td[0] = priv->apCurrTD[0] = &priv->ap_td0_rings[0];
+ priv->tail_td[0] = priv->ap_curr_td[0] = &priv->ap_td0_rings[0];

return 0;

@@ -777,7 +777,7 @@ static int device_init_td1_ring(struct vnt_private *priv)

if (i > 0)
priv->ap_td1_rings[i - 1].next_desc = cpu_to_le32(priv->td1_pool_dma);
- priv->tail_td[1] = priv->apCurrTD[1] = &priv->ap_td1_rings[0];
+ priv->tail_td[1] = priv->ap_curr_td[1] = &priv->ap_td1_rings[0];

return 0;

@@ -1235,7 +1235,7 @@ static int vnt_tx_packet(struct vnt_private *priv, struct sk_buff *skb)
return -ENOMEM;
}

- head_td = priv->apCurrTD[dma_idx];
+ head_td = priv->ap_curr_td[dma_idx];

head_td->td1.tcr = 0;

@@ -1244,7 +1244,7 @@ static int vnt_tx_packet(struct vnt_private *priv, struct sk_buff *skb)
if (dma_idx == TYPE_AC0DMA)
head_td->td_info->flags = TD_FLAGS_NETIF_SKB;

- priv->apCurrTD[dma_idx] = head_td->next;
+ priv->ap_curr_td[dma_idx] = head_td->next;

spin_unlock_irqrestore(&priv->lock, flags);

--
Xingquan Liu