irqchip/ativic32: Constify irq_domain_ops
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 14 Jul 2020 17:38:57 +0000 (02:38 +0900)
committerMarc Zyngier <maz@kernel.org>
Mon, 27 Jul 2020 07:55:02 +0000 (08:55 +0100)
This is passed to irq_domain_add_linear(), which accepts a pointer
to a const structure.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200714173857.477422-1-masahiroy@kernel.org
drivers/irqchip/irq-ativic32.c

index 85cf6e0e0e52bf12a07f88bef646974c52b29db8..476d6024aaf2203ff8d107b530e6ebf2f7f67971 100644 (file)
@@ -92,7 +92,7 @@ static int ativic32_irq_domain_map(struct irq_domain *id, unsigned int virq,
        return 0;
 }
 
-static struct irq_domain_ops ativic32_ops = {
+static const struct irq_domain_ops ativic32_ops = {
        .map = ativic32_irq_domain_map,
        .xlate = irq_domain_xlate_onecell
 };