From: Xingquan Liu <b1n@b1n.io>
To: Philipp Hortmann <philipp.g.hortmann@gmail.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Cc: Xingquan Liu <b1n@b1n.io>
Subject: [PATCH 4/7] staging: vt6655: Rename variable pDesc
Date: Sat, 21 Sep 2024 00:20:22 +0800 [thread overview]
Message-ID: <20240920162025.31465-4-b1n@b1n.io> (raw)
In-Reply-To: <20240920162025.31465-1-b1n@b1n.io>
Rename variable pDesc to p_desc to fix checkpatch warning
Avoid CamelCase.
Signed-off-by: Xingquan Liu <b1n@b1n.io>
---
drivers/staging/vt6655/card.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/drivers/staging/vt6655/card.c b/drivers/staging/vt6655/card.c
index e25073e013cf..9a546aaf1ad5 100644
--- a/drivers/staging/vt6655/card.c
+++ b/drivers/staging/vt6655/card.c
@@ -432,7 +432,7 @@ void card_safe_reset_tx(struct vnt_private *priv)
void card_v_safe_reset_rx(struct vnt_private *priv)
{
unsigned int uu;
- struct vnt_rx_desc *pDesc;
+ struct vnt_rx_desc *p_desc;
/* initialize RD index */
priv->pCurrRD[0] = &priv->aRD0Ring[0];
@@ -440,18 +440,18 @@ void card_v_safe_reset_rx(struct vnt_private *priv)
/* init state, all RD is chip's */
for (uu = 0; uu < priv->opts.rx_descs0; uu++) {
- pDesc = &priv->aRD0Ring[uu];
- pDesc->rd0.res_count = cpu_to_le16(priv->rx_buf_sz);
- pDesc->rd0.owner = OWNED_BY_NIC;
- pDesc->rd1.req_count = cpu_to_le16(priv->rx_buf_sz);
+ p_desc = &priv->aRD0Ring[uu];
+ p_desc->rd0.res_count = cpu_to_le16(priv->rx_buf_sz);
+ p_desc->rd0.owner = OWNED_BY_NIC;
+ p_desc->rd1.req_count = cpu_to_le16(priv->rx_buf_sz);
}
/* init state, all RD is chip's */
for (uu = 0; uu < priv->opts.rx_descs1; uu++) {
- pDesc = &priv->aRD1Ring[uu];
- pDesc->rd0.res_count = cpu_to_le16(priv->rx_buf_sz);
- pDesc->rd0.owner = OWNED_BY_NIC;
- pDesc->rd1.req_count = cpu_to_le16(priv->rx_buf_sz);
+ p_desc = &priv->aRD1Ring[uu];
+ p_desc->rd0.res_count = cpu_to_le16(priv->rx_buf_sz);
+ p_desc->rd0.owner = OWNED_BY_NIC;
+ p_desc->rd1.req_count = cpu_to_le16(priv->rx_buf_sz);
}
/* set perPkt mode */
--
Xingquan Liu
next prev parent reply other threads:[~2024-09-20 16:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-20 16:20 [PATCH 1/7] staging: vt6655: Rename variable apCurrTD Xingquan Liu
2024-09-20 16:20 ` [PATCH 2/7] staging: vt6655: Rename variable iTDUsed Xingquan Liu
2024-09-21 14:10 ` Philipp Hortmann
2024-09-22 4:46 ` Xingquan Liu
2024-09-23 12:09 ` Xingquan Liu
2024-09-24 7:29 ` Philipp Hortmann
2024-09-24 13:09 ` Xingquan Liu
2024-09-20 16:20 ` [PATCH 3/7] staging: vt6655: Rename function CARDvSafeResetRx Xingquan Liu
2024-09-20 16:20 ` Xingquan Liu [this message]
2024-09-20 16:20 ` [PATCH 5/7] staging: vt6655: Rename variable pCurrRD Xingquan Liu
2024-09-20 16:20 ` [PATCH 6/7] staging: vt6655: Rename variable aRD0Ring Xingquan Liu
2024-09-20 16:20 ` [PATCH 7/7] staging: vt6655: Rename variable aRD1Ring Xingquan Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240920162025.31465-4-b1n@b1n.io \
--to=b1n@b1n.io \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=philipp.g.hortmann@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®