staging: sm750fb: rename `regValue` to `reg_value`
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>
Signed-off-by Eric Florin <[email protected]>
--- drivers/staging/sm750fb/sm750_accel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/staging/sm750fb/sm750_accel.c +3 -2
@@ -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
Greg KH
maintainerQuoted 15 lines · Eric Florin
Rename
regValuetoreg_valueinwrite_dprto conform with style guidelines as reported by checkpatch.plCHECK: Avoid CamelCase: <regValue>
Signed-off-by Eric Florin <[email protected]>--- drivers/staging/sm750fb/sm750_accel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/staging/sm750fb/sm750_accel.c +0
-0
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