[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1503139957-3543-1-git-send-email-bhumirks@gmail.com>
Date: Sat, 19 Aug 2017 16:22:37 +0530
From: Bhumika Goyal <bhumirks@...il.com>
To: julia.lawall@...6.fr, tglx@...utronix.de, jason@...edaemon.net,
marc.zyngier@....com, linux-kernel@...r.kernel.org
Cc: Bhumika Goyal <bhumirks@...il.com>
Subject: [PATCH] irqchip/gic: 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@...il.com>
---
drivers/irqchip/irq-gic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c
index 1b1df4f..6a089f3 100644
--- a/drivers/irqchip/irq-gic.c
+++ b/drivers/irqchip/irq-gic.c
@@ -410,7 +410,7 @@ static void gic_handle_cascade_irq(struct irq_desc *desc)
chained_irq_exit(chip, desc);
}
-static struct irq_chip gic_chip = {
+static const struct irq_chip gic_chip = {
.irq_mask = gic_mask_irq,
.irq_unmask = gic_unmask_irq,
.irq_eoi = gic_eoi_irq,
--
1.9.1
Powered by blists - more mailing lists