aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/irq.h
diff options
context:
space:
mode:
authorRoman Fietze <roman.fietze@telemotive.de>2009-12-07 21:39:50 -0500
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-12-09 01:10:37 -0500
commit40d50cf7ca956183f3a573bc21082e1c7d04fa7b (patch)
treeb1e5c8f7396919742be17f51a1c7bf19684fe571 /arch/powerpc/include/asm/irq.h
parent990d89c6636c1be300a4f2f914b95200b237d017 (diff)
powerpc: Make "intspec" pointers in irq_host->xlate() const
Writing a driver using SCLPC on the MPC5200B I detected, that the intspec arrays to map irqs to Linux virq cannot be const, because the mapping and xlate functions only take non const pointers. All those functions do not modify the intspec, so a const pointer could be used. Signed-off-by: Roman Fietze <roman.fietze@telemotive.de> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/irq.h')
-rw-r--r--arch/powerpc/include/asm/irq.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/irq.h b/arch/powerpc/include/asm/irq.h
index c85a32f1a17f..e054baef1845 100644
--- a/arch/powerpc/include/asm/irq.h
+++ b/arch/powerpc/include/asm/irq.h
@@ -100,7 +100,7 @@ struct irq_host_ops {
100 * interrupt controller has for that line) 100 * interrupt controller has for that line)
101 */ 101 */
102 int (*xlate)(struct irq_host *h, struct device_node *ctrler, 102 int (*xlate)(struct irq_host *h, struct device_node *ctrler,
103 u32 *intspec, unsigned int intsize, 103 const u32 *intspec, unsigned int intsize,
104 irq_hw_number_t *out_hwirq, unsigned int *out_type); 104 irq_hw_number_t *out_hwirq, unsigned int *out_type);
105}; 105};
106 106
@@ -314,7 +314,7 @@ extern void irq_free_virt(unsigned int virq, unsigned int count);
314 * of the of_irq_map_*() functions. 314 * of the of_irq_map_*() functions.
315 */ 315 */
316extern unsigned int irq_create_of_mapping(struct device_node *controller, 316extern unsigned int irq_create_of_mapping(struct device_node *controller,
317 u32 *intspec, unsigned int intsize); 317 const u32 *intspec, unsigned int intsize);
318 318
319/** 319/**
320 * irq_of_parse_and_map - Parse and Map an interrupt into linux virq space 320 * irq_of_parse_and_map - Parse and Map an interrupt into linux virq space