summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2011-02-23 16:51:58 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2011-03-01 16:19:48 +0300
commitd4abe93386890061f109f2f2a46761ac5129bed6 (patch)
tree666bf9d6a9b8e4c0bcc85d9aa700a0b85384d8df /arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c
parentea7ee4cae4db6630b388f39c3abe4f86f67211f9 (diff)
downloadlinux-d4abe93386890061f109f2f2a46761ac5129bed6.tar.xz
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/eukrea_mbimxsd-baseboard.c')
-rw-r--r--arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c b/arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c
index 14a5ffc939ad..80761474c0f8 100644
--- a/arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c
+++ b/arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c
@@ -165,8 +165,8 @@ static iomux_v3_cfg_t eukrea_mbimxsd_pads[] = {
MX35_PAD_SD1_DATA3__ESDHC1_DAT3,
};
-#define GPIO_LED1 (2 * 32 + 29)
-#define GPIO_SWITCH1 (2 * 32 + 25)
+#define GPIO_LED1 IMX_GPIO_NR(3, 29)
+#define GPIO_SWITCH1 IMX_GPIO_NR(3, 25)
#define GPIO_LCDPWR (4)
static void eukrea_mbimxsd_lcd_power_set(struct plat_lcd_data *pd,