Skip to contentSkip to conversation

bcmring: add gpio_to_irq and irq_to_gpio functions

PATCH New Leo Chen 1 participant 1 message Oct 7, 2009

Subsystems (2)
lore
Share & tools
lore

Leo Chen

author
#0 lore raw

PATCH 1/1 bcmring: add gpio_to_irq and irq_to_gpio functions

fix checkpatch errors for irqs.h

---
 arch/arm/mach-bcmring/include/mach/irqs.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
arch/arm/mach-bcmring/include/mach/irqs.h +3 -0
index b279b82..8a147ab 100644
@@ -129,4 +129,7 @@
 #define IRQ_INTC1_VALID_MASK        0x07ffffff
 #define IRQ_SINTC_VALID_MASK        0x0000ffff
 
+#define	gpio_to_irq(gpio)	((gpio) + IRQ_GPIO_0)
+#define	irq_to_gpio(irq)	((irq) - IRQ_GPIO_0)
+
 #endif /* ARCH_BCMRING_IRQS_H */
Signature · 3 lines
1.6.0.6

Leo Chen