arcnet: fix macro name when DEBUG is defined
authorTom Rix <trix@redhat.com>
Sun, 17 Jan 2021 18:15:19 +0000 (10:15 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Jan 2021 04:57:43 +0000 (20:57 -0800)
When DEBUG is defined this error occurs

drivers/net/arcnet/com20020_cs.c:70:15: error: ‘com20020_REG_W_ADDR_HI’
  undeclared (first use in this function);
  did you mean ‘COM20020_REG_W_ADDR_HI’?
       ioaddr, com20020_REG_W_ADDR_HI);
               ^~~~~~~~~~~~~~~~~~~~~~

From reviewing the context, the suggestion is what is meant.

Signed-off-by: Tom Rix <trix@redhat.com>
Acked-by: Joe Perches <joe@perches.com>
Link: https://lore.kernel.org/r/20210117181519.527625-1-trix@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/arcnet/com20020_cs.c

index cf607ff..81223f6 100644 (file)
@@ -67,7 +67,7 @@ static void regdump(struct net_device *dev)
        /* set up the address register */
        count = 0;
        arcnet_outb((count >> 8) | RDDATAflag | AUTOINCflag,
-                   ioaddr, com20020_REG_W_ADDR_HI);
+                   ioaddr, COM20020_REG_W_ADDR_HI);
        arcnet_outb(count & 0xff, ioaddr, COM20020_REG_W_ADDR_LO);
 
        for (count = 0; count < 256 + 32; count++) {