Skip to content

Commit

Permalink
[ARM] pxa/vpac270: remove TS_IRQ magic number
Browse files Browse the repository at this point in the history
The touchscreen GPIO IRQ was used as a magic number. Define it properly in the
board header file. This is a simple cleanup patch.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
  • Loading branch information
Marek Vasut authored and Eric Miao committed May 11, 2010
1 parent 052345a commit aeec134
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions arch/arm/mach-pxa/include/mach/vpac270.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@

#define GPIO36_VPAC270_IDE_IRQ 36

#define GPIO113_VPAC270_TS_IRQ 113

#endif
2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/vpac270.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit aeec134

Please sign in to comment.