Skip to content

Commit

Permalink
staging: vt6655: Replace two VNSvInPortD with ioread64_lo_hi
Browse files Browse the repository at this point in the history
Replace two macros VNSvInPortD (32 Bit reads) with one ioread64_lo_hi.
The names 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>
  • Loading branch information
Philipp Hortmann authored and intel-lab-lkp committed Apr 24, 2022
1 parent 2d62d63 commit 6e7e66f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/vt6655/card.c
Expand Up @@ -30,6 +30,7 @@
#include "desc.h"
#include "rf.h"
#include "power.h"
#include <linux/io.h>

/*--------------------- Static Definitions -------------------------*/

Expand Down Expand Up @@ -753,8 +754,7 @@ bool CARDbGetCurrentTSF(struct vnt_private *priv, u64 *pqwCurrTSF)
}
if (ww == W_MAX_TIMEOUT)
return false;
VNSvInPortD(iobase + MAC_REG_TSFCNTR, (u32 *)pqwCurrTSF);
VNSvInPortD(iobase + MAC_REG_TSFCNTR + 4, (u32 *)pqwCurrTSF + 1);
*pqwCurrTSF = ioread64_lo_hi(iobase + MAC_REG_TSFCNTR);

return true;
}
Expand Down

0 comments on commit 6e7e66f

Please sign in to comment.