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 MACvReadMIBCounter with VNSvInPortD
Replace macro MACvReadMIBCounter with VNSvInPortD and as it was the only user, it can now be removed. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/e1b7156e2c689cf53c738642fd9b33816ec89f92.1651036713.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f898a286d9
commit
aa20e23426
2 changed files with 1 additions and 4 deletions
|
@ -1042,7 +1042,7 @@ static void vnt_interrupt_process(struct vnt_private *priv)
|
|||
spin_lock_irqsave(&priv->lock, flags);
|
||||
|
||||
/* Read low level stats */
|
||||
MACvReadMIBCounter(priv->port_offset, &mib_counter);
|
||||
VNSvInPortD(priv->port_offset + MAC_REG_MIBCNTR, &mib_counter);
|
||||
|
||||
low_stats->dot11RTSSuccessCount += mib_counter & 0xff;
|
||||
low_stats->dot11RTSFailureCount += (mib_counter >> 8) & 0xff;
|
||||
|
|
|
@ -684,9 +684,6 @@ do { \
|
|||
#define MACvSelectPage1(iobase) \
|
||||
VNSvOutPortB(iobase + MAC_REG_PAGE1SEL, 1)
|
||||
|
||||
#define MACvReadMIBCounter(iobase, pdwCounter) \
|
||||
VNSvInPortD(iobase + MAC_REG_MIBCNTR, pdwCounter)
|
||||
|
||||
#define MACvEnableProtectMD(iobase) \
|
||||
do { \
|
||||
unsigned long dwOrgValue; \
|
||||
|
|
Loading…
Reference in a new issue