From: Geoff Levand Date: Wed, 22 Nov 2006 23:46:48 +0000 (+0100) Subject: [POWERPC] add virq_to_hw accessor routine X-Git-Tag: v2.6.20-rc1~34^2~40^2~8^2~61 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e34226d2cd443a67f46fc531e3a6bc6e03843ce2;p=linux-2.6 [POWERPC] add virq_to_hw accessor routine This adds an accessor routine virq_to_hw() to the virq routines which hides the implementation details of the virq to hwirq map. Acked-by: Benjamin Herrenschmidt Signed-off-by: Geoff Levand Signed-off-by: Arnd Bergmann --- diff --git a/include/asm-powerpc/irq.h b/include/asm-powerpc/irq.h index f960f5346f..46476e9a49 100644 --- a/include/asm-powerpc/irq.h +++ b/include/asm-powerpc/irq.h @@ -135,6 +135,10 @@ struct irq_map_entry { extern struct irq_map_entry irq_map[NR_IRQS]; +static inline irq_hw_number_t virq_to_hw(unsigned int virq) +{ + return irq_map[virq].hwirq; +} /** * irq_alloc_host - Allocate a new irq_host data structure