arm/mxc: move IMX_GPIO_NR into mach/hardware.h
authorShawn Guo <shawn.guo@linaro.org>
Sat, 13 Aug 2011 16:14:05 +0000 (00:14 +0800)
committerSascha Hauer <s.hauer@pengutronix.de>
Wed, 17 Aug 2011 06:31:57 +0000 (08:31 +0200)
The patch moves IMX_GPIO_NR into mach/hardware.h, so that we only
use standard gpiolib helpers in mach/gpio.h.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/include/mach/gpio.h
arch/arm/plat-mxc/include/mach/hardware.h

index 72c3ed1cddd5859157c0dad35a0350d35bdf60cd..44af0064ba1a96485d30bece8ee4d3a3183e0369 100644 (file)
 #include <mach/hardware.h>
 #include <asm-generic/gpio.h>
 
-
-/* There's a off-by-one betweem the gpio bank number and the gpiochip */
-/* range e.g. GPIO_1_5 is gpio 5 under linux */
-#define IMX_GPIO_NR(bank, nr)          (((bank) - 1) * 32 + (nr))
-
 /* use gpiolib dispatchers */
 #define gpio_get_value         __gpio_get_value
 #define gpio_set_value         __gpio_set_value
index 77f6556f59a78ea9f33c1c6a881c67ea64e0a230..f57ec47d6fd56c786fc993e8529c39f677395abe 100644 (file)
        .type = _type,                                                  \
 }
 
+/* There's a off-by-one betweem the gpio bank number and the gpiochip */
+/* range e.g. GPIO_1_5 is gpio 5 under linux */
+#define IMX_GPIO_NR(bank, nr)          (((bank) - 1) * 32 + (nr))
+
 #define IMX_GPIO_TO_IRQ(gpio)  (MXC_GPIO_IRQ_START + (gpio))
 
 #endif /* __ASM_ARCH_MXC_HARDWARE_H__ */
This page took 0.026502 seconds and 5 git commands to generate.