irqchip: Constify irq_domain_ops

The irq_domain_ops are not modified by the driver and the irqdomain core
code accepts pointer to a const data.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Kukjin Kim <kgene@kernel.org>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Cc: Lee Jones <lee@kernel.org>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-rpi-kernel@lists.infradead.org
Cc: linux-mediatek@lists.infradead.org
Link: http://lkml.kernel.org/r/1430139264-4362-2-git-send-email-k.kozlowski.k@gmail.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Krzysztof Kozlowski 2015-04-27 21:54:24 +09:00 committed by Thomas Gleixner
parent 01364028bd
commit 9600973656
14 changed files with 15 additions and 15 deletions

View File

@ -164,7 +164,7 @@ static int combiner_irq_domain_map(struct irq_domain *d, unsigned int irq,
return 0; return 0;
} }
static struct irq_domain_ops combiner_irq_domain_ops = { static const struct irq_domain_ops combiner_irq_domain_ops = {
.xlate = combiner_irq_domain_xlate, .xlate = combiner_irq_domain_xlate,
.map = combiner_irq_domain_map, .map = combiner_irq_domain_map,
}; };

View File

@ -409,7 +409,7 @@ static struct notifier_block mpic_cascaded_cpu_notifier = {
}; };
#endif /* CONFIG_SMP */ #endif /* CONFIG_SMP */
static struct irq_domain_ops armada_370_xp_mpic_irq_ops = { static const struct irq_domain_ops armada_370_xp_mpic_irq_ops = {
.map = armada_370_xp_mpic_irq_map, .map = armada_370_xp_mpic_irq_map,
.xlate = irq_domain_xlate_onecell, .xlate = irq_domain_xlate_onecell,
}; };

View File

@ -135,7 +135,7 @@ static int armctrl_xlate(struct irq_domain *d, struct device_node *ctrlr,
return 0; return 0;
} }
static struct irq_domain_ops armctrl_ops = { static const struct irq_domain_ops armctrl_ops = {
.xlate = armctrl_xlate .xlate = armctrl_xlate
}; };

View File

@ -131,7 +131,7 @@ static int keystone_irq_map(struct irq_domain *h, unsigned int virq,
return 0; return 0;
} }
static struct irq_domain_ops keystone_irq_ops = { static const struct irq_domain_ops keystone_irq_ops = {
.map = keystone_irq_map, .map = keystone_irq_map,
.xlate = irq_domain_xlate_onecell, .xlate = irq_domain_xlate_onecell,
}; };

View File

@ -739,7 +739,7 @@ static int gic_irq_domain_xlate(struct irq_domain *d, struct device_node *ctrlr,
return 0; return 0;
} }
static struct irq_domain_ops gic_irq_domain_ops = { static const struct irq_domain_ops gic_irq_domain_ops = {
.map = gic_irq_domain_map, .map = gic_irq_domain_map,
.xlate = gic_irq_domain_xlate, .xlate = gic_irq_domain_xlate,
}; };

View File

@ -111,7 +111,7 @@ static int mtk_sysirq_domain_alloc(struct irq_domain *domain, unsigned int virq,
return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, &gic_data); return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, &gic_data);
} }
static struct irq_domain_ops sysirq_domain_ops = { static const struct irq_domain_ops sysirq_domain_ops = {
.xlate = mtk_sysirq_domain_xlate, .xlate = mtk_sysirq_domain_xlate,
.alloc = mtk_sysirq_domain_alloc, .alloc = mtk_sysirq_domain_alloc,
.free = irq_domain_free_irqs_common, .free = irq_domain_free_irqs_common,

View File

@ -90,7 +90,7 @@ static int icoll_irq_domain_map(struct irq_domain *d, unsigned int virq,
return 0; return 0;
} }
static struct irq_domain_ops icoll_irq_domain_ops = { static const struct irq_domain_ops icoll_irq_domain_ops = {
.map = icoll_irq_domain_map, .map = icoll_irq_domain_map,
.xlate = irq_domain_xlate_onecell, .xlate = irq_domain_xlate_onecell,
}; };

View File

@ -347,7 +347,7 @@ static int intc_irqpin_irq_domain_map(struct irq_domain *h, unsigned int virq,
return 0; return 0;
} }
static struct irq_domain_ops intc_irqpin_irq_domain_ops = { static const struct irq_domain_ops intc_irqpin_irq_domain_ops = {
.map = intc_irqpin_irq_domain_map, .map = intc_irqpin_irq_domain_map,
.xlate = irq_domain_xlate_twocell, .xlate = irq_domain_xlate_twocell,
}; };

View File

@ -168,7 +168,7 @@ static int irqc_irq_domain_map(struct irq_domain *h, unsigned int virq,
return 0; return 0;
} }
static struct irq_domain_ops irqc_irq_domain_ops = { static const struct irq_domain_ops irqc_irq_domain_ops = {
.map = irqc_irq_domain_map, .map = irqc_irq_domain_map,
.xlate = irq_domain_xlate_twocell, .xlate = irq_domain_xlate_twocell,
}; };

View File

@ -502,7 +502,7 @@ err:
return -EINVAL; return -EINVAL;
} }
static struct irq_domain_ops s3c24xx_irq_ops = { static const struct irq_domain_ops s3c24xx_irq_ops = {
.map = s3c24xx_irq_map, .map = s3c24xx_irq_map,
.xlate = irq_domain_xlate_twocell, .xlate = irq_domain_xlate_twocell,
}; };
@ -1228,7 +1228,7 @@ static int s3c24xx_irq_xlate_of(struct irq_domain *d, struct device_node *n,
return 0; return 0;
} }
static struct irq_domain_ops s3c24xx_irq_ops_of = { static const struct irq_domain_ops s3c24xx_irq_ops_of = {
.map = s3c24xx_irq_map_of, .map = s3c24xx_irq_map_of,
.xlate = s3c24xx_irq_xlate_of, .xlate = s3c24xx_irq_xlate_of,
}; };

View File

@ -89,7 +89,7 @@ static int sun4i_irq_map(struct irq_domain *d, unsigned int virq,
return 0; return 0;
} }
static struct irq_domain_ops sun4i_irq_ops = { static const struct irq_domain_ops sun4i_irq_ops = {
.map = sun4i_irq_map, .map = sun4i_irq_map,
.xlate = irq_domain_xlate_onecell, .xlate = irq_domain_xlate_onecell,
}; };

View File

@ -132,7 +132,7 @@ static int fpga_irqdomain_map(struct irq_domain *d, unsigned int irq,
return 0; return 0;
} }
static struct irq_domain_ops fpga_irqdomain_ops = { static const struct irq_domain_ops fpga_irqdomain_ops = {
.map = fpga_irqdomain_map, .map = fpga_irqdomain_map,
.xlate = irq_domain_xlate_onetwocell, .xlate = irq_domain_xlate_onetwocell,
}; };

View File

@ -256,7 +256,7 @@ static void __exception_irq_entry vic_handle_irq(struct pt_regs *regs)
} while (handled); } while (handled);
} }
static struct irq_domain_ops vic_irqdomain_ops = { static const struct irq_domain_ops vic_irqdomain_ops = {
.map = vic_irqdomain_map, .map = vic_irqdomain_map,
.xlate = irq_domain_xlate_onetwocell, .xlate = irq_domain_xlate_onetwocell,
}; };

View File

@ -173,7 +173,7 @@ static int vt8500_irq_map(struct irq_domain *h, unsigned int virq,
return 0; return 0;
} }
static struct irq_domain_ops vt8500_irq_domain_ops = { static const struct irq_domain_ops vt8500_irq_domain_ops = {
.map = vt8500_irq_map, .map = vt8500_irq_map,
.xlate = irq_domain_xlate_onecell, .xlate = irq_domain_xlate_onecell,
}; };