Skip to contentSkip to conversation

vpac/pxa270: remove TS_IRQ magic number

PATCH New Marek Vasut 1 participant 1 message Apr 26, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vpac/pxa270: remove TS_IRQ magic number

The touchscreen GPIO IRQ was used as a magic number. Define it properly in the board header file. This is a simple cleanup patch.

---
 arch/arm/mach-pxa/include/mach/vpac270.h |    2 ++
 arch/arm/mach-pxa/vpac270.c              |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)
arch/arm/mach-pxa/include/mach/vpac270.h +2 -0
index 0d82c47..7bfa3dd 100644
@@ -37,4 +37,6 @@
 
 #define	GPIO36_VPAC270_IDE_IRQ		36
 
+#define	GPIO113_VPAC270_TS_IRQ		113
+
 #endif
arch/arm/mach-pxa/vpac270.c +1 -1
index 6575b8f..a1b39c4 100644
@@ -388,7 +388,7 @@ static pxa2xx_audio_ops_t vpac270_ac97_pdata = {
 };
 
 static struct ucb1400_pdata vpac270_ucb1400_pdata = {
-	.irq		= IRQ_GPIO(113),
+	.irq		= IRQ_GPIO(GPIO113_VPAC270_TS_IRQ),
 };
 
 static struct platform_device vpac270_ucb1400_device = {
Signature · 1 line
1.7.0