diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-19 16:22:37 +0530 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2017-08-31 15:31:43 +0100 |
commit | 73c4c37c7e6ecc3cf921d182b733c9322ebed117 (patch) | |
tree | 519774683f1c347639e350d7a8e3f664dbddc8d7 /drivers/irqchip/irq-gic.c | |
parent | 4bdf502517288662d883fbaa915874790f51a2cd (diff) | |
download | linux-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/irq-gic.c')
-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) 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, |