staging: vt6655: Rename wData to reg_value in two macros
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Wed, 13 Jul 2022 05:00:12 +0000 (07:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Jul 2022 13:48:37 +0000 (15:48 +0200)
Fix name of a variable in two macros that use CamelCase which is not
accepted by checkpatch.pl

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/8f2e9451a24e380c997fcf7c87249f7ed9b66787.1657657918.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/mac.h

index 16c18a1..2a31c94 100644 (file)
@@ -546,9 +546,9 @@ do {                                                                        \
 
 #define MACvWordRegBitsOn(iobase, reg_offset, bit_mask)                \
 do {                                                                   \
-       unsigned short wData;                                           \
-       wData = ioread16(iobase + reg_offset);                          \
-       iowrite16(wData | (bit_mask), iobase + reg_offset);             \
+       unsigned short reg_value;                                       \
+       reg_value = ioread16(iobase + reg_offset);                      \
+       iowrite16(reg_value | (bit_mask), iobase + reg_offset);         \
 } while (0)
 
 #define MACvRegBitsOff(iobase, reg_offset, bit_mask)                   \
@@ -560,9 +560,9 @@ do {                                                                        \
 
 #define MACvWordRegBitsOff(iobase, reg_offset, bit_mask)               \
 do {                                                                   \
-       unsigned short wData;                                           \
-       wData = ioread16(iobase + reg_offset);                          \
-       iowrite16(wData & ~(bit_mask), iobase + reg_offset);            \
+       unsigned short reg_value;                                       \
+       reg_value = ioread16(iobase + reg_offset);                      \
+       iowrite16(reg_value & ~(bit_mask), iobase + reg_offset);        \
 } while (0)
 
 #define MACvReceive0(iobase)                                           \