irqchip/i8259: Constify irq_domain_ops
authorTobias Klauser <tklauser@distanz.ch>
Fri, 2 Jun 2017 08:20:53 +0000 (10:20 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 22 Jun 2017 13:12:49 +0000 (14:12 +0100)
struct irq_domain_ops is not modified, so it can be made const.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-i8259.c

index 1aec12c6d9ac83cb4338d4c0c44a78b83c1e01d8..7aafbb091b67cc1f6c8897b92d07697226e2c866 100644 (file)
@@ -307,7 +307,7 @@ static int i8259A_irq_domain_map(struct irq_domain *d, unsigned int virq,
        return 0;
 }
 
-static struct irq_domain_ops i8259A_ops = {
+static const struct irq_domain_ops i8259A_ops = {
        .map = i8259A_irq_domain_map,
        .xlate = irq_domain_xlate_onecell,
 };