staging: vt6655: Rename MACvReadEtherAddress
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Mon, 4 Jul 2022 18:20:39 +0000 (20:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Jul 2022 12:28:47 +0000 (14:28 +0200)
Fix name of a macro that uses CamelCase which is not
accepted by checkpatch.pl

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/3714f7cd3425e0ef0a3df0cc291131cdb85a3796.1656835310.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c
drivers/staging/vt6655/mac.h

index 6cf2188..b9c57c6 100644 (file)
@@ -1722,7 +1722,7 @@ vt6655_probe(struct pci_dev *pcid, const struct pci_device_id *ent)
        }
        /* initial to reload eeprom */
        MACvInitialize(priv);
-       MACvReadEtherAddress(priv->port_offset, priv->abyCurrentNetAddr);
+       vt6655_mac_read_ether_addr(priv->port_offset, priv->abyCurrentNetAddr);
 
        /* Get RFType */
        priv->byRFType = SROMbyReadEmbedded(priv->port_offset, EEP_OFS_RFTYPE);
index cfebd12..ba5575d 100644 (file)
@@ -577,7 +577,7 @@ do {                                                                \
        iowrite8(0, iobase + MAC_REG_PAGE1SEL);                 \
 } while (0)
 
-#define MACvReadEtherAddress(iobase, mac_addr)                 \
+#define vt6655_mac_read_ether_addr(iobase, mac_addr)           \
 do {                                                           \
        iowrite8(1, iobase + MAC_REG_PAGE1SEL);                 \
        mac_addr[0] = ioread8(iobase + MAC_REG_PAR0);           \