diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-19 16:25:52 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-20 20:02:29 -0700 |
commit | 6eb15e2130c939aec2edb08d84110c20ab3a16bf (patch) | |
tree | 62eed5221ed4ea7304a73b4c5b1fb31b3b2b8d64 /drivers/net/dsa/mv88e6xxx/chip.c | |
parent | 138b57f0f893873badd86e33c2b1f7bbc0bab831 (diff) | |
download | lwn-6eb15e2130c939aec2edb08d84110c20ab3a16bf.tar.gz lwn-6eb15e2130c939aec2edb08d84110c20ab3a16bf.zip |
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 <bhumirks@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx/chip.c')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/chip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index 918d8f0fe091..c6678aa9b4ef 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c @@ -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, |