Skip to contentSkip to conversation

staging: sm750fb: rename `regValue` to `reg_value`

PATCH In review Eric Florin 2 participants 2 messages May 6, 2025 – May 21, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: sm750fb: rename `regValue` to `reg_value`

Rename regValue to reg_value in write_dpr to conform with style guidelines as reported by checkpatch.pl

CHECK: Avoid CamelCase: <regValue>

---
 drivers/staging/sm750fb/sm750_accel.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/staging/sm750fb/sm750_accel.c +3 -2
index 44b9e3fe3a41..5648476a8f3c 100644
@@ -17,9 +17,10 @@
 
 #include "sm750.h"
 #include "sm750_accel.h"
-static inline void write_dpr(struct lynx_accel *accel, int offset, u32 regValue)
+static inline void write_dpr(struct lynx_accel *accel, int offset,
+			     u32 reg_value)
 {
-	writel(regValue, accel->dprBase + offset);
+	writel(reg_value, accel->dprBase + offset);
 }
 
 static inline u32 read_dpr(struct lynx_accel *accel, int offset)
Signature · 1 line
2.49.0.967.g6a0df3ecc3-goog
maintainer
#1 lore raw
Quoted 15 lines · Eric Florin

Rename regValue to reg_value in write_dpr to conform with style guidelines as reported by checkpatch.pl

CHECK: Avoid CamelCase: <regValue>

---
 drivers/staging/sm750fb/sm750_accel.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/staging/sm750fb/sm750_accel.c +0 -0
index 44b9e3fe3a41..5648476a8f3c 100644

drivers/staging/sm750fb/sm750_accel.c line 21

Quoted 6 lines
drivers/staging/sm750fb/sm750_accel.c +2 -1
@@ -17,9 +17,10 @@
 
 #include "sm750.h"
 #include "sm750_accel.h"
-static inline void write_dpr(struct lynx_accel *accel, int offset, u32 regValue)
+static inline void write_dpr(struct lynx_accel *accel, int offset,
+			     u32 reg_value)

You also wrapped this line, why? It should be fine as-is.

thanks,

greg k-h