staging: vt6655: Rename byRegOfs to reg_offset in four macros

Fix name of a variable in four 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/82f65d22ac8cd75b2c7790c13be3d0068968925b.1657657918.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Philipp Hortmann 2022-07-13 06:58:56 +02:00 committed by Greg Kroah-Hartman
parent 724933e37a
commit 186c46008c
1 changed files with 12 additions and 12 deletions

View File

@ -537,32 +537,32 @@
/*--------------------- Export Macros ------------------------------*/ /*--------------------- Export Macros ------------------------------*/
#define MACvRegBitsOn(iobase, byRegOfs, byBits) \ #define MACvRegBitsOn(iobase, reg_offset, byBits) \
do { \ do { \
unsigned char byData; \ unsigned char byData; \
byData = ioread8(iobase + byRegOfs); \ byData = ioread8(iobase + reg_offset); \
iowrite8(byData | (byBits), iobase + byRegOfs); \ iowrite8(byData | (byBits), iobase + reg_offset); \
} while (0) } while (0)
#define MACvWordRegBitsOn(iobase, byRegOfs, wBits) \ #define MACvWordRegBitsOn(iobase, reg_offset, wBits) \
do { \ do { \
unsigned short wData; \ unsigned short wData; \
wData = ioread16(iobase + byRegOfs); \ wData = ioread16(iobase + reg_offset); \
iowrite16(wData | (wBits), iobase + byRegOfs); \ iowrite16(wData | (wBits), iobase + reg_offset); \
} while (0) } while (0)
#define MACvRegBitsOff(iobase, byRegOfs, byBits) \ #define MACvRegBitsOff(iobase, reg_offset, byBits) \
do { \ do { \
unsigned char byData; \ unsigned char byData; \
byData = ioread8(iobase + byRegOfs); \ byData = ioread8(iobase + reg_offset); \
iowrite8(byData & ~(byBits), iobase + byRegOfs); \ iowrite8(byData & ~(byBits), iobase + reg_offset); \
} while (0) } while (0)
#define MACvWordRegBitsOff(iobase, byRegOfs, wBits) \ #define MACvWordRegBitsOff(iobase, reg_offset, wBits) \
do { \ do { \
unsigned short wData; \ unsigned short wData; \
wData = ioread16(iobase + byRegOfs); \ wData = ioread16(iobase + reg_offset); \
iowrite16(wData & ~(wBits), iobase + byRegOfs); \ iowrite16(wData & ~(wBits), iobase + reg_offset); \
} while (0) } while (0)
#define MACvReceive0(iobase) \ #define MACvReceive0(iobase) \