Skip to content

Commit 6eb15e2

Browse files
goyalbhumikadavem330
authored andcommitted
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]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 138b57f commit 6eb15e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/net/dsa/mv88e6xxx/chip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ static void mv88e6xxx_g1_irq_bus_sync_unlock(struct irq_data *d)
307307
mutex_unlock(&chip->reg_lock);
308308
}
309309

310-
static struct irq_chip mv88e6xxx_g1_irq_chip = {
310+
static const struct irq_chip mv88e6xxx_g1_irq_chip = {
311311
.name = "mv88e6xxx-g1",
312312
.irq_mask = mv88e6xxx_g1_irq_mask,
313313
.irq_unmask = mv88e6xxx_g1_irq_unmask,

drivers/net/dsa/mv88e6xxx/global2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ static void mv88e6xxx_g2_irq_bus_sync_unlock(struct irq_data *d)
10191019
mutex_unlock(&chip->reg_lock);
10201020
}
10211021

1022-
static struct irq_chip mv88e6xxx_g2_irq_chip = {
1022+
static const struct irq_chip mv88e6xxx_g2_irq_chip = {
10231023
.name = "mv88e6xxx-g2",
10241024
.irq_mask = mv88e6xxx_g2_irq_mask,
10251025
.irq_unmask = mv88e6xxx_g2_irq_unmask,

0 commit comments

Comments
 (0)