mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
staging: vt6655: Replace VNSvInPortW with ioread16
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>
This commit is contained in:
parent
a7d1a80671
commit
f898a286d9
2 changed files with 2 additions and 5 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -20,9 +20,6 @@
|
|||
|
||||
/* For memory mapped IO */
|
||||
|
||||
#define VNSvInPortW(dwIOAddress, pwData) \
|
||||
(*(pwData) = ioread16(dwIOAddress))
|
||||
|
||||
#define VNSvInPortD(dwIOAddress, pdwData) \
|
||||
(*(pdwData) = ioread32(dwIOAddress))
|
||||
|
||||
|
|
Loading…
Reference in a new issue