staging: vt6655: Rename byBits to bit_mask in two macros
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Wed, 13 Jul 2022 04:59:18 +0000 (06:59 +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/5ac7e8860ecb23232cf5befea024872e7db76d59.1657657918.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/mac.h

index b380314..3037502 100644 (file)
 
 /*---------------------  Export Macros ------------------------------*/
 
-#define MACvRegBitsOn(iobase, reg_offset, byBits)                      \
+#define MACvRegBitsOn(iobase, reg_offset, bit_mask)                    \
 do {                                                                   \
        unsigned char byData;                                           \
        byData = ioread8(iobase + reg_offset);                          \
-       iowrite8(byData | (byBits), iobase + reg_offset);               \
+       iowrite8(byData | (bit_mask), iobase + reg_offset);             \
 } while (0)
 
 #define MACvWordRegBitsOn(iobase, reg_offset, wBits)                   \
@@ -551,11 +551,11 @@ do {                                                                      \
        iowrite16(wData | (wBits), iobase + reg_offset);                \
 } while (0)
 
-#define MACvRegBitsOff(iobase, reg_offset, byBits)                     \
+#define MACvRegBitsOff(iobase, reg_offset, bit_mask)                   \
 do {                                                                   \
        unsigned char byData;                                           \
        byData = ioread8(iobase + reg_offset);                          \
-       iowrite8(byData & ~(byBits), iobase + reg_offset);              \
+       iowrite8(byData & ~(bit_mask), iobase + reg_offset);            \
 } while (0)
 
 #define MACvWordRegBitsOff(iobase, reg_offset, wBits)                  \