Commit bcac7e6e authored by Philipp Hortmann's avatar Philipp Hortmann Committed by Greg Kroah-Hartman

staging: vt6655: Replace MACvGPIOIn with VNSvInPortB

Replace macro MACvGPIOIn with VNSvInPortB.
Next patch will replace all macros VNSvInPortB with ioread8.
The names of macros 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: default avatarPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/0a3c3eb0d4dad544fa281b34c5a70d4a3ab2d9f1.1650094595.git.philipp.g.hortmann@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6c67631a
...@@ -377,7 +377,7 @@ static void device_init_registers(struct vnt_private *priv) ...@@ -377,7 +377,7 @@ static void device_init_registers(struct vnt_private *priv)
if (priv->byRadioCtl & EEP_RADIOCTL_ENABLE) { if (priv->byRadioCtl & EEP_RADIOCTL_ENABLE) {
/* Get GPIO */ /* Get GPIO */
MACvGPIOIn(priv->port_offset, &priv->byGPIO); VNSvInPortB(priv->port_offset + MAC_REG_GPIOCTL1, &priv->byGPIO);
if (((priv->byGPIO & GPIO0_DATA) && if (((priv->byGPIO & GPIO0_DATA) &&
!(priv->byRadioCtl & EEP_RADIOCTL_INV)) || !(priv->byRadioCtl & EEP_RADIOCTL_INV)) ||
......
...@@ -734,9 +734,6 @@ do { \ ...@@ -734,9 +734,6 @@ do { \
VNSvOutPortD(iobase + MAC_REG_ENCFG, dwOrgValue); \ VNSvOutPortD(iobase + MAC_REG_ENCFG, dwOrgValue); \
} while (0) } while (0)
#define MACvGPIOIn(iobase, pbyValue) \
VNSvInPortB(iobase + MAC_REG_GPIOCTL1, pbyValue)
#define MACvSetRFLE_LatchBase(iobase) \ #define MACvSetRFLE_LatchBase(iobase) \
MACvWordRegBitsOn(iobase, MAC_REG_SOFTPWRCTL, SOFTPWRCTL_RFLEOPT) MACvWordRegBitsOn(iobase, MAC_REG_SOFTPWRCTL, SOFTPWRCTL_RFLEOPT)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment