summaryrefslogtreecommitdiffstats
path: root/drivers/irqchip
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-19 16:22:37 +0530
committerMarc Zyngier <marc.zyngier@arm.com>2017-08-31 15:31:43 +0100
commit73c4c37c7e6ecc3cf921d182b733c9322ebed117 (patch)
tree519774683f1c347639e350d7a8e3f664dbddc8d7 /drivers/irqchip
parent4bdf502517288662d883fbaa915874790f51a2cd (diff)
downloadlinux-73c4c37c7e6ecc3cf921d182b733c9322ebed117.tar.bz2
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@gmail.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'drivers/irqchip')
-rw-r--r--drivers/irqchip/irq-gic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c
index 1b1df4f770bd..6a089f3c4ace 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,