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

Shawn Guo shawn.guo at linaro.org
Wed Feb 15 19:15:59 EST 2012


On Wed, Feb 15, 2012 at 09:29:27PM -0200, Fabio Estevam wrote:
> 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?
> 
They are not brand new.  They are here to help a plain translation
from IRQ_GPIOx() to IMX_GPIOx().

> Why not use the standard IMX_GPIO_NR macro instead?

It can be another patch, if you are interested.

-- 
Regards,
Shawn



More information about the linux-arm-kernel mailing list