Commit 4cb07b36 authored by Philipp Hortmann's avatar Philipp Hortmann Committed by Greg Kroah-Hartman
Browse files

staging: vt6655: Replace MACvSetCurrBCNLength with VNSvOutPortW



Replace macro MACvSetCurrBCNLength with VNSvOutPortW and as it
was the only user, it can now be removed.

Signed-off-by: default avatarPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/8ff556c84b3a4a70e8151965bcf6357e1de61bd1.1653203927.git.philipp.g.hortmann@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2e07715a
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -570,11 +570,6 @@ do { \
	VNSvOutPortD(iobase + MAC_REG_BCNDMAPTR,		\
		     dwCurrDescAddr)

/* set the chip with current BCN length */
#define MACvSetCurrBCNLength(iobase, wCurrBCNLength)		\
	VNSvOutPortW(iobase + MAC_REG_BCNDMACTL + 2,		\
		     wCurrBCNLength)

#define MACvWriteBSSIDAddress(iobase, pbyEtherAddr)		\
do {								\
	iowrite8(1, iobase + MAC_REG_PAGE1SEL);			\
+1 −1
Original line number Diff line number Diff line
@@ -1422,7 +1422,7 @@ static int vnt_beacon_xmit(struct vnt_private *priv,

	MACvSetCurrBCNTxDescAddr(priv->port_offset, priv->tx_beacon_dma);

	MACvSetCurrBCNLength(priv->port_offset, priv->wBCNBufLen);
	VNSvOutPortW(priv->port_offset + MAC_REG_BCNDMACTL + 2, priv->wBCNBufLen);
	/* Set auto Transmit on */
	MACvRegBitsOn(priv->port_offset, MAC_REG_TCR, TCR_AUTOBCNTX);
	/* Poll Transmit the adapter */