[PATCH v5 0/1] staging: rtl8192u: Rename ChannelPlan to channel_plan and fix shadowed index

Vivek BalachandharTN posted 1 patch 2 months, 2 weeks ago
drivers/staging/rtl8192u/r8192U_core.c | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
[PATCH v5 0/1] staging: rtl8192u: Rename ChannelPlan to channel_plan and fix shadowed index
Posted by Vivek BalachandharTN 2 months, 2 weeks ago
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