Arnaud Patard (Rtp) 96886c4361 iMX51: introduce IMX_GPIO_NR
Currently, to define a GPIO number, we're using something like :

#define EFIKAMX_PCBID0         (2*32 + 16)

to define GPIO 3 16.

This is not really readable and it's error prone imho (note the 3 vs 2).
So, I'm introducing a new macro to define this in a better way. Now, the
code sample become :

#define EFIKAMX_PCBID0         IMX_GPIO_NR(3, 16)

v2:
- move to gpio.h
- add parens & spaces
- switch to IMX_GPIO_NR instead of MX51_GPIO_NR

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Cc: Amit Kucheria <amit.kucheria@linaro.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-12-03 11:05:16 +01:00
..
2010-06-24 15:40:36 +02:00
2010-06-24 15:40:36 +02:00
2010-06-24 15:40:36 +02:00
2010-06-24 15:40:36 +02:00
2009-03-13 10:33:50 +01:00
2010-10-11 15:22:05 +02:00
2010-12-03 11:05:16 +01:00
2009-04-07 10:18:32 +01:00
2010-07-26 14:18:33 +02:00
2010-02-24 10:07:15 +01:00
2010-10-19 18:44:57 +02:00
2009-02-26 14:00:58 -07:00
2010-11-24 10:09:04 +01:00
2009-11-14 10:29:15 +01:00
2009-05-07 16:15:58 +02:00