[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250718025206.171361-1-vivek.balachandhar@gmail.com>
Date: Fri, 18 Jul 2025 02:52:05 +0000
From: Vivek BalachandharTN <vivek.balachandhar@...il.com>
To: gregkh@...uxfoundation.org
Cc: linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org,
Vivek BalachandharTN <vivek.balachandhar@...il.com>
Subject: [PATCH v5 0/1] staging: rtl8192u: Rename ChannelPlan to channel_plan and fix shadowed index
This is my first contribution to Linux Kernel.
This patch addresses a naming inconsistency in the rtl8192u driver.
- The global array `ChannelPlan` has been renamed to `channel_plan` to follow Linux kernel naming conventions.
- The local variable used as an index into this array was also named `channel_plan`, which caused shadowing. It has been renamed to `chan` for clarity and to avoid confusion.
Changes since v4:
- Renamed `chan_plan_idx` to `chan` per Dan Carpenter’s suggestion.
- Removed unrelated and accidental changes to `Makefile` and `init/main.c`.
This change improves code readability and compliance with kernel coding style.
---
Vivek BalachandharTN (1):
staging: rtl8192u: Rename ChannelPlan to channel_plan and fix index
name
drivers/staging/rtl8192u/r8192U_core.c | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
--
2.39.5
Powered by blists - more mailing lists