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-07-26 14:29:19 +02:00
2009-11-14 10:30:39 +01:00
2010-10-19 18:45:01 +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
2010-06-24 15:40:36 +02:00
2009-03-13 10:33:50 +01:00
2010-02-24 10:07:03 +01:00
2010-11-24 10:09:04 +01:00
2010-11-17 08:58:11 +01:00
2010-11-19 21:59:51 +01:00
2010-10-05 15:49:26 -07:00
2010-02-09 16:15:26 +02:00
2010-10-11 15:22:05 +02:00
2010-10-19 18:45:00 +02:00
2010-12-03 11:05:16 +01:00
2010-11-24 10:09:04 +01:00
2009-04-07 10:18:32 +01:00
2008-08-07 09:55:48 +01:00
2009-06-14 13:42:43 -07:00
2010-11-17 10:01:27 +01:00
2008-12-18 16:40:14 +01:00
2010-02-24 10:07:15 +01:00
2010-02-24 10:07:15 +01:00
2010-05-19 14:22:44 +02:00
2010-02-24 10:07:15 +01:00
2010-07-26 14:18:33 +02:00
2010-02-24 10:07:15 +01:00
2010-02-24 10:07:00 +01:00
2010-11-24 09:57:13 +01:00
2010-11-24 10:09:04 +01:00
2010-06-30 09:00:28 +02:00
2010-02-24 10:07:16 +01:00
2010-11-24 09:56:58 +01:00
2010-02-24 10:07:15 +01:00
2009-01-19 15:36:21 -07:00
2010-10-19 18:44:57 +02:00
2010-02-25 14:01:49 +01:00
2010-11-24 10:09:04 +01:00
2010-07-26 14:17:46 +02:00
2009-04-06 21:43:58 -03:00
2010-11-17 10:01:38 +01:00
2010-07-28 09:28:36 +02:00
2010-11-17 08:58:12 +01:00
2010-06-30 09:00:28 +02:00
2009-02-26 14:00:58 -07:00
2010-11-28 19:51:47 +01:00
2010-03-02 14:52:55 -08:00
2010-11-17 10:01:38 +01:00
2010-12-03 11:05:10 +01:00
2010-11-28 19:51:47 +01:00
2010-11-28 19:51:47 +01:00
2010-11-28 19:51:47 +01:00
2010-11-28 19:51:47 +01:00
2010-11-24 10:09:04 +01:00
2010-11-17 08:58:11 +01:00
2010-05-03 15:18:13 +02:00
2010-07-26 14:27:25 +02:00
2010-11-28 19:51:47 +01:00
2010-12-03 11:04:54 +01:00
2009-09-23 07:39:43 -07:00
2010-06-03 19:00:16 +01:00
2010-10-19 18:44:58 +02:00
2010-06-30 09:00:28 +02:00
2009-11-14 10:29:15 +01:00
2010-10-19 18:45:00 +02:00
2009-05-07 16:15:58 +02:00
2010-06-30 09:00:28 +02:00