irqchip/gic: Make irq_chip const
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 19 Aug 2017 10:52:37 +0000 (16:22 +0530)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 31 Aug 2017 14:31:43 +0000 (15:31 +0100)
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>
drivers/irqchip/irq-gic.c

index 1b1df4f770bdefe0a16e0109624801f8af90f1f7..6a089f3c4ace58d0ccefb63b281f123efb7a6994 100644 (file)
@@ -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,