diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-19 06:52:37 -0400 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2017-08-31 10:31:43 -0400 |
commit | 73c4c37c7e6ecc3cf921d182b733c9322ebed117 (patch) | |
tree | 519774683f1c347639e350d7a8e3f664dbddc8d7 | |
parent | 4bdf502517288662d883fbaa915874790f51a2cd (diff) |
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>
-rw-r--r-- | drivers/irqchip/irq-gic.c | 2 |
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) | |||
410 | chained_irq_exit(chip, desc); | 410 | chained_irq_exit(chip, desc); |
411 | } | 411 | } |
412 | 412 | ||
413 | static struct irq_chip gic_chip = { | 413 | static const struct irq_chip gic_chip = { |
414 | .irq_mask = gic_mask_irq, | 414 | .irq_mask = gic_mask_irq, |
415 | .irq_unmask = gic_unmask_irq, | 415 | .irq_unmask = gic_unmask_irq, |
416 | .irq_eoi = gic_eoi_irq, | 416 | .irq_eoi = gic_eoi_irq, |