From mboxrd@z Thu Jan 1 00:00:00 1970 From: u.kleine-koenig@pengutronix.de (Uwe =?iso-8859-1?Q?Kleine-K=F6nig?=) Date: Thu, 9 Dec 2010 08:12:30 +0100 Subject: [PATCH 2/6] arm: plat-mxc: add full parameter macro to define gpio port In-Reply-To: <1291903716-31388-2-git-send-email-richard.zhao@freescale.com> References: <1291903716-31388-1-git-send-email-richard.zhao@freescale.com> <1291903716-31388-2-git-send-email-richard.zhao@freescale.com> Message-ID: <20101209071230.GJ17441@pengutronix.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Dec 09, 2010 at 10:08:32PM +0800, Richard Zhao wrote: > Signed-off-by: Richard Zhao > --- > arch/arm/plat-mxc/gpio.c | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/arch/arm/plat-mxc/gpio.c b/arch/arm/plat-mxc/gpio.c > index 93a8d93..235985e 100644 > --- a/arch/arm/plat-mxc/gpio.c > +++ b/arch/arm/plat-mxc/gpio.c > @@ -350,15 +350,18 @@ int __init mxc_gpio_init(struct mxc_gpio_port *port, int cnt) > return 0; > } > > -#define DEFINE_IMX_GPIO_PORT_IRQ(soc, _id, _hwid, _irq) \ > +#define _DEFINE_IMX_GPIO_PORT_IRQ(soc, _id, _hwid, _irq, _irq_high) \ > { \ > .chip.label = "gpio-" #_id, \ > .irq = _irq, \ > + .irq_high = _irq_high, \ > .base = soc ## _IO_ADDRESS( \ > soc ## _GPIO ## _hwid ## _BASE_ADDR), \ > .virtual_irq_start = MXC_GPIO_IRQ_START + (_id) * 32, \ > } I don't like the name you chose. IMHO it should contain HIGH. Uwe > > +#define DEFINE_IMX_GPIO_PORT_IRQ(soc, _id, _hwid, _irq) \ > + _DEFINE_IMX_GPIO_PORT_IRQ(soc, _id, _hwid, _irq, 0) > #define DEFINE_IMX_GPIO_PORT(soc, _id, _hwid) \ > DEFINE_IMX_GPIO_PORT_IRQ(soc, _id, _hwid, 0) > > -- > 1.6.3.3 > > > -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |