[PATCH v3] staging: rtl8723bs: Fix camelCase to snake_case style in core files
From: Donny Turizo
Date: Sat May 24 2025 - 22:48:31 EST
This patch renames the functions _Read_MACREG and _Write_MACREG to
_Read_macreg and _Write_macreg respectively, aligning them with the
Linux kernel's naming convention of using snake_case for identifiers.
These changes improve code readability and maintain consistency with
the kernel coding style, particularly in the rtl8723bs staging driver.
No functional changes introduced.
Signed-off-by: Donny Turizo <donnyturizo13@xxxxxxxxx>
---
v2: Rebased the patch onto Greg Kroah-Hartman's staging branch for
proper submission base.
v3: Updated the commit message body to provide a clear description of
the changes.
Changed the "From" field to use my real name as author.
Updated the existing Signed-off-by line to reflect my real name.
---
drivers/staging/rtl8723bs/core/rtw_cmd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c
index 557bfdf092c2..81f795a82711 100644
--- a/drivers/staging/rtl8723bs/core/rtw_cmd.c
+++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c
@@ -9,8 +9,8 @@
#include <linux/jiffies.h>
static struct _cmd_callback rtw_cmd_callback[] = {
- {GEN_CMD_CODE(_Read_MACREG), NULL}, /*0*/
- {GEN_CMD_CODE(_Write_MACREG), NULL},
+ {GEN_CMD_CODE(_read_macreg), NULL}, /*0*/
+ {GEN_CMD_CODE(_write_macreg), NULL},
{GEN_CMD_CODE(_Read_BBREG), &rtw_getbbrfreg_cmdrsp_callback},
{GEN_CMD_CODE(_Write_BBREG), NULL},
{GEN_CMD_CODE(_Read_RFREG), &rtw_getbbrfreg_cmdrsp_callback},
--
2.43.0