[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5ac7e8860ecb23232cf5befea024872e7db76d59.1657657918.git.philipp.g.hortmann@gmail.com>
Date: Wed, 13 Jul 2022 06:59:18 +0200
From: Philipp Hortmann <philipp.g.hortmann@...il.com>
To: Forest Bond <forest@...ttletooquiet.net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: [PATCH 02/13] staging: vt6655: Rename byBits to bit_mask in two
macros
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@...il.com>
---
drivers/staging/vt6655/mac.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/vt6655/mac.h b/drivers/staging/vt6655/mac.h
index b3803143673c..3037502c1883 100644
--- a/drivers/staging/vt6655/mac.h
+++ b/drivers/staging/vt6655/mac.h
@@ -537,11 +537,11 @@
/*--------------------- 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) \
--
2.37.0
Powered by blists - more mailing lists