From: Arnaud Patard (Rtp) Date: Fri, 26 Nov 2010 14:20:52 +0000 (+0100) Subject: iMX51: introduce IMX_GPIO_NR X-Git-Tag: v2.6.38-rc1~38^2~3^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96886c4361f1ae3f6c775d7c9295e2d557101d0f;p=pandora-kernel.git 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 Cc: Amit Kucheria Cc: Sascha Hauer Cc: Eric Bénard Signed-off-by: Sascha Hauer --- Reading git-diff-tree failed