From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Pinchart Date: Tue, 09 Apr 2013 17:07:40 +0000 Subject: Re: [PATCH] sh-pfc: r8a7779: use RCAR_GP_PIN() on _GP_GPIO() macro Message-Id: <2023317.YgggvpAYlv@avalon> List-Id: References: <878v4sb8y1.wl%kuninori.morimoto.gx@renesas.com> In-Reply-To: <878v4sb8y1.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-sh@vger.kernel.org Hi Morimoto-san, On Monday 08 April 2013 21:54:18 Kuninori Morimoto wrote: > Signed-off-by: Kuninori Morimoto > --- > > >> Laurent > > I guess this patch is correct on your macro idea ? Yes it is. Acked-by: Laurent Pinchart > drivers/pinctrl/sh-pfc/pfc-r8a7779.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c > b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c index 7ba1f21..53cf679 100644 > --- a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c > +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c > @@ -80,7 +80,7 @@ > #define _GP_PORT_ALL(bank, pin, name, sfx) name##_##sfx > > #define _GP_GPIO(bank, pin, _name, sfx) \ > - [(bank * 32) + pin] = { \ > + [RCAR_GP_PIN(bank, pin)] = { \ > .name = __stringify(_name), \ > .enum_id = _name##_DATA, \ > } -- Regards, Laurent Pinchart