[PATCH v2 5/7] ARM: imx: eliminate macro IRQ_GPIOx()

Fabio Estevam festevam at gmail.com
Wed Feb 15 18:29:27 EST 2012


On Wed, Feb 15, 2012 at 4:47 PM, Shawn Guo <shawn.guo at linaro.org> wrote:

> +#define IMX_GPIOA(x)  (GPIO_PORTA + x)
> +#define IMX_GPIOB(x)  (GPIO_PORTB + x)
> +#define IMX_GPIOC(x)  (GPIO_PORTC + x)
> +#define IMX_GPIOD(x)  (GPIO_PORTD + x)
> +#define IMX_GPIOE(x)  (GPIO_PORTE + x)
> +#define IMX_GPIOF(x)  (GPIO_PORTF + x)

Do we really need this new macros?

Why not use the standard IMX_GPIO_NR macro instead?



More information about the linux-arm-kernel mailing list