* [PATCH] net: dsa: mv88e6xxx: make irq_chip const
@ 2017-08-19 10:55 Bhumika Goyal
2017-08-19 13:25 ` Andrew Lunn
2017-08-21 3:03 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Bhumika Goyal @ 2017-08-19 10:55 UTC (permalink / raw)
To: julia.lawall, andrew, vivien.didelot, f.fainelli, netdev, linux-kernel
Cc: Bhumika Goyal
Make this const as it is only used in a copy operation.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
drivers/net/dsa/mv88e6xxx/chip.c | 2 +-
drivers/net/dsa/mv88e6xxx/global2.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c
index 918d8f0..c6678aa 100644
--- a/drivers/net/dsa/mv88e6xxx/chip.c
+++ b/drivers/net/dsa/mv88e6xxx/chip.c
@@ -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,
diff --git a/drivers/net/dsa/mv88e6xxx/global2.c b/drivers/net/dsa/mv88e6xxx/global2.c
index 16f5562..af07278 100644
--- a/drivers/net/dsa/mv88e6xxx/global2.c
+++ b/drivers/net/dsa/mv88e6xxx/global2.c
@@ -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,
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] net: dsa: mv88e6xxx: make irq_chip const
2017-08-19 10:55 [PATCH] net: dsa: mv88e6xxx: make irq_chip const Bhumika Goyal
@ 2017-08-19 13:25 ` Andrew Lunn
2017-08-21 3:03 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2017-08-19 13:25 UTC (permalink / raw)
To: Bhumika Goyal
Cc: julia.lawall, vivien.didelot, f.fainelli, netdev, linux-kernel
On Sat, Aug 19, 2017 at 04:25:52PM +0530, Bhumika Goyal wrote:
> 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>
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net: dsa: mv88e6xxx: make irq_chip const
2017-08-19 10:55 [PATCH] net: dsa: mv88e6xxx: make irq_chip const Bhumika Goyal
2017-08-19 13:25 ` Andrew Lunn
@ 2017-08-21 3:03 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2017-08-21 3:03 UTC (permalink / raw)
To: bhumirks
Cc: julia.lawall, andrew, vivien.didelot, f.fainelli, netdev, linux-kernel
From: Bhumika Goyal <bhumirks@gmail.com>
Date: Sat, 19 Aug 2017 16:25:52 +0530
> Make this const as it is only used in a copy operation.
> Done using Coccinelle.
>
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Applied to net-next, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-08-21 3:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-19 10:55 [PATCH] net: dsa: mv88e6xxx: make irq_chip const Bhumika Goyal
2017-08-19 13:25 ` Andrew Lunn
2017-08-21 3:03 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.