net: dsa: mv88e6xxx: make irq_chip const
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 19 Aug 2017 10:55:52 +0000 (16:25 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Aug 2017 03:02:29 +0000 (20:02 -0700)
Make this const as it is only used in a copy operation.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/global2.c

index 918d8f0fe09127234d1dff30c826a2cab98330b5..c6678aa9b4ef0716890f8ace36cda4cf609de045 100644 (file)
@@ -307,7 +307,7 @@ out:
        mutex_unlock(&chip->reg_lock);
 }
 
-static struct irq_chip mv88e6xxx_g1_irq_chip = {
+static const struct irq_chip mv88e6xxx_g1_irq_chip = {
        .name                   = "mv88e6xxx-g1",
        .irq_mask               = mv88e6xxx_g1_irq_mask,
        .irq_unmask             = mv88e6xxx_g1_irq_unmask,
index 16f556261022d3480ed94a70744ee84b9b4742e5..af072787782515110da44ea6e17c95e2343e38ed 100644 (file)
@@ -1019,7 +1019,7 @@ static void mv88e6xxx_g2_irq_bus_sync_unlock(struct irq_data *d)
        mutex_unlock(&chip->reg_lock);
 }
 
-static struct irq_chip mv88e6xxx_g2_irq_chip = {
+static const struct irq_chip mv88e6xxx_g2_irq_chip = {
        .name                   = "mv88e6xxx-g2",
        .irq_mask               = mv88e6xxx_g2_irq_mask,
        .irq_unmask             = mv88e6xxx_g2_irq_unmask,