staging: vt6655: Replace VNSvInPortW with ioread16
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 24 Apr 2022 07:44:05 +0000 (09:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Apr 2022 09:37:00 +0000 (11:37 +0200)
Replace macro VNSvInPortW with ioread16.
The name of macro and the arguments 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/2d55e245cc530ffafe53384df03691d1b29b495c.1650784817.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/mac.h
drivers/staging/vt6655/upc.h

index 7970a42..4c67398 100644 (file)
@@ -547,7 +547,7 @@ do {                                                                        \
 #define MACvWordRegBitsOn(iobase, byRegOfs, wBits)                     \
 do {                                                                   \
        unsigned short wData;                                           \
-       VNSvInPortW(iobase + byRegOfs, &wData);                 \
+       wData = ioread16(iobase + byRegOfs);                            \
        VNSvOutPortW(iobase + byRegOfs, wData | (wBits));               \
 } while (0)
 
@@ -561,7 +561,7 @@ do {                                                                        \
 #define MACvWordRegBitsOff(iobase, byRegOfs, wBits)                    \
 do {                                                                   \
        unsigned short wData;                                           \
-       VNSvInPortW(iobase + byRegOfs, &wData);                 \
+       wData = ioread16(iobase + byRegOfs);                            \
        VNSvOutPortW(iobase + byRegOfs, wData & ~(wBits));              \
 } while (0)
 
index d2c1528..4d09cf1 100644 (file)
@@ -20,9 +20,6 @@
 
 /* For memory mapped IO */
 
-#define VNSvInPortW(dwIOAddress, pwData) \
-       (*(pwData) = ioread16(dwIOAddress))
-
 #define VNSvInPortD(dwIOAddress, pdwData) \
        (*(pdwData) = ioread32(dwIOAddress))