staging: vt6655: Replace MACvSetCurrBCNTxDescAddr with VNSvOutPortD
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 22 May 2022 19:49:10 +0000 (21:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Jun 2022 05:58:40 +0000 (07:58 +0200)
Replace macro MACvSetCurrBCNTxDescAddr with VNSvOutPortD and as it
was only used twice, it can now be removed.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/1db079979f7e0e3535463d9f31204aa708c6f680.1653203927.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/card.c
drivers/staging/vt6655/mac.h
drivers/staging/vt6655/rxtx.c

index 72043a2..23804cd 100644 (file)
@@ -411,8 +411,7 @@ void CARDvSafeResetTx(struct vnt_private *priv)
        MACvSetCurrTXDescAddr(TYPE_AC0DMA, priv, priv->td1_pool_dma);
 
        /* set MAC Beacon TX pointer */
-       MACvSetCurrBCNTxDescAddr(priv->port_offset,
-                                (priv->tx_beacon_dma));
+       VNSvOutPortD(priv->port_offset + MAC_REG_BCNDMAPTR, priv->tx_beacon_dma);
 }
 
 /*
index a1d5eb5..89a3979 100644 (file)
@@ -565,11 +565,6 @@ do {                                                                       \
        iowrite16(wData & ~(wBits), iobase + byRegOfs);                 \
 } while (0)
 
-/* set the chip with current BCN tx descriptor address */
-#define MACvSetCurrBCNTxDescAddr(iobase, dwCurrDescAddr)       \
-       VNSvOutPortD(iobase + MAC_REG_BCNDMAPTR,                \
-                    dwCurrDescAddr)
-
 #define MACvWriteBSSIDAddress(iobase, pbyEtherAddr)            \
 do {                                                           \
        iowrite8(1, iobase + MAC_REG_PAGE1SEL);                 \
index 390b27b..03c2ab8 100644 (file)
@@ -1420,7 +1420,7 @@ static int vnt_beacon_xmit(struct vnt_private *priv,
 
        priv->wBCNBufLen = sizeof(*short_head) + skb->len;
 
-       MACvSetCurrBCNTxDescAddr(priv->port_offset, priv->tx_beacon_dma);
+       VNSvOutPortD(priv->port_offset + MAC_REG_BCNDMAPTR, priv->tx_beacon_dma);
 
        iowrite16(priv->wBCNBufLen, priv->port_offset + MAC_REG_BCNDMACTL + 2);
        /* Set auto Transmit on */