diff options
author | Philipp Hortmann <philipp.g.hortmann@gmail.com> | 2022-07-13 06:59:58 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-07-14 15:48:37 +0200 |
commit | d57561d9609e0946ee2bcf9cafcce665095d0f91 (patch) | |
tree | f33ef1cb4881972b22776aafa88b7e28e8f5e1d1 /drivers/staging/vt6655 | |
parent | 5bd643b197ffbd039951a9475d8f887ec3f2beb6 (diff) | |
download | lwn-d57561d9609e0946ee2bcf9cafcce665095d0f91.tar.gz lwn-d57561d9609e0946ee2bcf9cafcce665095d0f91.zip |
staging: vt6655: Rename byData to reg_value 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@gmail.com>
Link: https://lore.kernel.org/r/159014866cce40913d360a0692fb3c426d4cb840.1657657918.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655')
-rw-r--r-- | drivers/staging/vt6655/mac.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/vt6655/mac.h b/drivers/staging/vt6655/mac.h index b8f543aef716..16c18a1ed22e 100644 --- a/drivers/staging/vt6655/mac.h +++ b/drivers/staging/vt6655/mac.h @@ -539,9 +539,9 @@ #define MACvRegBitsOn(iobase, reg_offset, bit_mask) \ do { \ - unsigned char byData; \ - byData = ioread8(iobase + reg_offset); \ - iowrite8(byData | (bit_mask), iobase + reg_offset); \ + unsigned char reg_value; \ + reg_value = ioread8(iobase + reg_offset); \ + iowrite8(reg_value | (bit_mask), iobase + reg_offset); \ } while (0) #define MACvWordRegBitsOn(iobase, reg_offset, bit_mask) \ @@ -553,9 +553,9 @@ do { \ #define MACvRegBitsOff(iobase, reg_offset, bit_mask) \ do { \ - unsigned char byData; \ - byData = ioread8(iobase + reg_offset); \ - iowrite8(byData & ~(bit_mask), iobase + reg_offset); \ + unsigned char reg_value; \ + reg_value = ioread8(iobase + reg_offset); \ + iowrite8(reg_value & ~(bit_mask), iobase + reg_offset); \ } while (0) #define MACvWordRegBitsOff(iobase, reg_offset, bit_mask) \ |