diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2011-02-23 08:51:58 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-03-01 08:19:48 -0500 |
commit | d4abe93386890061f109f2f2a46761ac5129bed6 (patch) | |
tree | 666bf9d6a9b8e4c0bcc85d9aa700a0b85384d8df /arch/arm/mach-mx3/mach-cpuimx35.c | |
parent | ea7ee4cae4db6630b388f39c3abe4f86f67211f9 (diff) |
arm: mach-mx3: use IMX_GPIO_NR instead of hard-coded values
The latter are error-prone because the bank number is one less than one
would read in the documentation.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Eric Benard <eric@eukrea.com>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mach-cpuimx35.c')
-rw-r--r-- | arch/arm/mach-mx3/mach-cpuimx35.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-mx3/mach-cpuimx35.c b/arch/arm/mach-mx3/mach-cpuimx35.c index 6db0520e8794..a42f1a98f1a2 100644 --- a/arch/arm/mach-mx3/mach-cpuimx35.c +++ b/arch/arm/mach-mx3/mach-cpuimx35.c | |||
@@ -60,7 +60,7 @@ static struct tsc2007_platform_data tsc2007_info = { | |||
60 | .x_plate_ohms = 180, | 60 | .x_plate_ohms = 180, |
61 | }; | 61 | }; |
62 | 62 | ||
63 | #define TSC2007_IRQGPIO (2 * 32 + 2) | 63 | #define TSC2007_IRQGPIO IMX_GPIO_NR(3, 2) |
64 | static struct i2c_board_info eukrea_cpuimx35_i2c_devices[] = { | 64 | static struct i2c_board_info eukrea_cpuimx35_i2c_devices[] = { |
65 | { | 65 | { |
66 | I2C_BOARD_INFO("pcf8563", 0x51), | 66 | I2C_BOARD_INFO("pcf8563", 0x51), |