diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-09-28 11:34:01 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-10-12 10:39:05 -0400 |
commit | f303a6dd127b5ec6de90d1cd79ed19820c7e9658 (patch) | |
tree | 8060ccc63ab56406e6a9535b21cca29f17956052 /kernel/irq | |
parent | 442471848f5abb55b99cba1229301655f67492b4 (diff) |
genirq: Sanitize irq_data accessors
Get the data structure from the core and provide inline wrappers to
access the irq_data members.
Provide accessor inlines for irq_data as well.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/irq')
-rw-r--r-- | kernel/irq/chip.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index 2b1f6906b824..659be326c8e8 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c | |||
@@ -256,6 +256,14 @@ int set_irq_chip_data(unsigned int irq, void *data) | |||
256 | } | 256 | } |
257 | EXPORT_SYMBOL(set_irq_chip_data); | 257 | EXPORT_SYMBOL(set_irq_chip_data); |
258 | 258 | ||
259 | struct irq_data *irq_get_irq_data(unsigned int irq) | ||
260 | { | ||
261 | struct irq_desc *desc = irq_to_desc(irq); | ||
262 | |||
263 | return desc ? &desc->irq_data : NULL; | ||
264 | } | ||
265 | EXPORT_SYMBOL_GPL(irq_get_irq_data); | ||
266 | |||
259 | /** | 267 | /** |
260 | * set_irq_nested_thread - Set/Reset the IRQ_NESTED_THREAD flag of an irq | 268 | * set_irq_nested_thread - Set/Reset the IRQ_NESTED_THREAD flag of an irq |
261 | * | 269 | * |