From: shawn.guo@linaro.org (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 5/7] ARM: imx: eliminate macro IRQ_GPIOx()
Date: Wed, 15 Feb 2012 16:15:59 -0800 [thread overview]
Message-ID: <20120216001558.GC30946@r65073-Latitude-D630> (raw)
In-Reply-To: <CAOMZO5AZvzbMmMSvMDVE5Xi7JoKkOttdN96Vai0k8ZH5TKdmbw@mail.gmail.com>
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@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
next prev parent reply other threads:[~2012-02-16 0:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-15 18:47 [PATCH v2 0/7] irq_domain for imx tzic and gpio Shawn Guo
2012-02-15 18:47 ` [PATCH v2 1/7] dt: add empty of_find_compatible_node function Shawn Guo
2012-02-15 20:10 ` Grant Likely
2012-02-15 18:47 ` [PATCH v2 2/7] ARM: imx5: adopt generic_chip irq_domain support for tzic Shawn Guo
2012-02-16 3:43 ` Rob Herring
2012-02-16 4:59 ` Shawn Guo
2012-02-15 18:47 ` [PATCH v2 3/7] ARM: imx: eliminate macro IMX_GPIO_TO_IRQ() Shawn Guo
2012-02-15 18:47 ` [PATCH v2 4/7] ARM: imx: eliminate macro IOMUX_TO_IRQ() Shawn Guo
2012-02-15 18:47 ` [PATCH v2 5/7] ARM: imx: eliminate macro IRQ_GPIOx() Shawn Guo
2012-02-15 23:29 ` Fabio Estevam
2012-02-16 0:15 ` Shawn Guo [this message]
2012-02-15 18:47 ` [PATCH v2 6/7] gpio/mxc: adopt irq_domain for gpio interrupt support Shawn Guo
2012-02-15 18:47 ` [PATCH v2 7/7] ARM: imx: remove macro MXC_GPIO_IRQ_START Shawn Guo
2012-02-15 20:16 ` Grant Likely
2012-02-15 21:56 ` Shawn Guo
2012-02-16 7:47 ` [PATCH v2 0/7] irq_domain for imx tzic and gpio Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120216001558.GC30946@r65073-Latitude-D630 \
--to=shawn.guo@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).