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

Cc: Joel Stanley <joel@jms.id.au>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-aspeed-vic.c

index d24451d5bf8ab1f9921bc4da2b1bd2ffe5e4b09b..88e139e4c1f90799c0ffb9027fff083be5a319c0 100644 (file)
@@ -186,7 +186,7 @@ static int avic_map(struct irq_domain *d, unsigned int irq,
        return 0;
 }
 
-static struct irq_domain_ops avic_dom_ops = {
+static const struct irq_domain_ops avic_dom_ops = {
        .map = avic_map,
        .xlate = irq_domain_xlate_onetwocell,
 };