From: Marcos Andrade <marcosandrade95963@gmail.com>
To: gregkh@linuxfoundation.org
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
Marcos Andrade <marcosandrade95963@gmail.com>
Subject: [PATCH 3/3] staging: rtl8723bs: update rt_channel_info member usage to snake_case in wifi_reged.c
Date: Sat, 21 Mar 2026 15:13:42 +0000 [thread overview]
Message-ID: <20260321151342.19864-4-marcosandrade95963@gmail.com> (raw)
In-Reply-To: <20260321151342.19864-1-marcosandrade95963@gmail.com>
Replace all occurrences of the CamelCase member names ChannelNum and
ScanType in os_dep/wifi_reged.c with their snake_case equivalents
channel_num and scan_type, as defined in struct rt_channel_info.
This change brings the code in line with the kernel coding style
as described in Documentation/process/coding-style.rst.
No functional changes intended.
Signed-off-by: Marcos Andrade <marcosandrade95963@gmail.com>
---
drivers/staging/rtl8723bs/os_dep/wifi_regd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/os_dep/wifi_regd.c b/drivers/staging/rtl8723bs/os_dep/wifi_regd.c
index f9c4d487badf..bccc779c3ecf 100644
--- a/drivers/staging/rtl8723bs/os_dep/wifi_regd.c
+++ b/drivers/staging/rtl8723bs/os_dep/wifi_regd.c
@@ -70,11 +70,11 @@ static void _rtw_reg_apply_flags(struct wiphy *wiphy)
/* channels apply by channel plans. */
for (i = 0; i < max_chan_nums; i++) {
- channel = channel_set[i].ChannelNum;
+ channel = channel_set[i].channel_num;
freq = rtw_ieee80211_channel_to_frequency(channel);
ch = ieee80211_get_channel(wiphy, freq);
if (ch) {
- if (channel_set[i].ScanType == SCAN_PASSIVE)
+ if (channel_set[i].scan_type == SCAN_PASSIVE)
ch->flags = IEEE80211_CHAN_NO_IR;
else
ch->flags = 0;
--
2.53.0
prev parent reply other threads:[~2026-03-21 15:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-21 15:13 [PATCH 0/3] rename rt_channel_info members to snake_case Marcos Andrade
2026-03-21 15:13 ` [PATCH 1/3] staging: rtl8723bs: " Marcos Andrade
2026-03-21 15:30 ` Dan Carpenter
2026-03-21 15:13 ` [PATCH 2/3] " Marcos Andrade
2026-03-21 15:30 ` Dan Carpenter
2026-03-21 15:13 ` Marcos Andrade [this message]
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=20260321151342.19864-4-marcosandrade95963@gmail.com \
--to=marcosandrade95963@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/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®