Commit 6eb15e21 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by David S. Miller

net: dsa: mv88e6xxx: make irq_chip const

Make this const as it is only used in a copy operation.
Done using Coccinelle.
Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 138b57f0
...@@ -307,7 +307,7 @@ static void mv88e6xxx_g1_irq_bus_sync_unlock(struct irq_data *d) ...@@ -307,7 +307,7 @@ static void mv88e6xxx_g1_irq_bus_sync_unlock(struct irq_data *d)
mutex_unlock(&chip->reg_lock); 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", .name = "mv88e6xxx-g1",
.irq_mask = mv88e6xxx_g1_irq_mask, .irq_mask = mv88e6xxx_g1_irq_mask,
.irq_unmask = mv88e6xxx_g1_irq_unmask, .irq_unmask = mv88e6xxx_g1_irq_unmask,
......
...@@ -1019,7 +1019,7 @@ static void mv88e6xxx_g2_irq_bus_sync_unlock(struct irq_data *d) ...@@ -1019,7 +1019,7 @@ static void mv88e6xxx_g2_irq_bus_sync_unlock(struct irq_data *d)
mutex_unlock(&chip->reg_lock); 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", .name = "mv88e6xxx-g2",
.irq_mask = mv88e6xxx_g2_irq_mask, .irq_mask = mv88e6xxx_g2_irq_mask,
.irq_unmask = mv88e6xxx_g2_irq_unmask, .irq_unmask = mv88e6xxx_g2_irq_unmask,
......
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