net: dsa: mv88e6xxx: make irq_chip const
Subsystems (4)
PATCH 1/1 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 Bhumika Goyal <[email protected]>
--- drivers/net/dsa/mv88e6xxx/chip.c | 2 +- drivers/net/dsa/mv88e6xxx/global2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/dsa/mv88e6xxx/chip.c +1 -1
@@ -307,7 +307,7 @@ static void mv88e6xxx_g1_irq_bus_sync_unlock(struct irq_data *d)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,
drivers/net/dsa/mv88e6xxx/global2.c +1 -1
@@ -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,
Signature · 1 line
1.9.1
Quoted 4 lines · Bhumika Goyal
Make this const as it is only used in a copy operation. Done using Coccinelle.
Signed-off-by Bhumika Goyal <[email protected]>
Reviewed-by Andrew Lunn <[email protected]>
Andrew
From: Bhumika Goyal <[email protected]>
Date: Sat, 19 Aug 2017 16:25:52 +0530
Quoted 4 lines
Make this const as it is only used in a copy operation. Done using Coccinelle.
Signed-off-by Bhumika Goyal <[email protected]>
Applied to net-next, thanks.