diff options
author | Philipp Hortmann <philipp.g.hortmann@gmail.com> | 2022-04-16 10:00:55 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-20 18:45:15 +0200 |
commit | 08bea7da71b34c60b9aca1258a2098fed3bc3ce6 (patch) | |
tree | 437e8380a83d6f0c10ac683c3a922df9a280e4e5 /drivers/staging/vt6655/card.c | |
parent | bcac7e6eecd746a8f6fc0f992f887ea2d916a937 (diff) | |
download | linux-stable-08bea7da71b34c60b9aca1258a2098fed3bc3ce6.tar.gz linux-stable-08bea7da71b34c60b9aca1258a2098fed3bc3ce6.tar.bz2 linux-stable-08bea7da71b34c60b9aca1258a2098fed3bc3ce6.zip |
staging: vt6655: Replace VNSvInPortB with ioread8
Replace macro VNSvInPortB with ioread8. Avoid cast of the return
value is possible with one exception.
The name of macro and the arguments use CamelCase which
is not accepted by checkpatch.pl
Since there are more than one checkpatch issue per line,
more steps are rquired to fix.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/fd71797d9d55d53f95c5c4e2df826bf85dd4626a.1650094595.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655/card.c')
-rw-r--r-- | drivers/staging/vt6655/card.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6655/card.c b/drivers/staging/vt6655/card.c index 6386f355cd78..022310af5485 100644 --- a/drivers/staging/vt6655/card.c +++ b/drivers/staging/vt6655/card.c @@ -747,7 +747,7 @@ bool CARDbGetCurrentTSF(struct vnt_private *priv, u64 *pqwCurrTSF) MACvRegBitsOn(iobase, MAC_REG_TFTCTL, TFTCTL_TSFCNTRRD); for (ww = 0; ww < W_MAX_TIMEOUT; ww++) { - VNSvInPortB(iobase + MAC_REG_TFTCTL, &data); + data = ioread8(iobase + MAC_REG_TFTCTL); if (!(data & TFTCTL_TSFCNTRRD)) break; } |