From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Pinchart Subject: Re: [PATCH v2 2/2] ARM: shmobile: Armadillo800EVA: Move st1232 reset pin handling Date: Mon, 08 Apr 2013 16:17:22 +0200 Message-ID: <1534841.hHClRQAXMk@avalon> References: <1365425547-10391-1-git-send-email-hechtb+renesas@gmail.com> <1365425547-10391-2-git-send-email-hechtb+renesas@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <1365425547-10391-2-git-send-email-hechtb+renesas@gmail.com> Sender: linux-sh-owner@vger.kernel.org To: Bastian Hecht Cc: linux-sh@vger.kernel.org, linux-input@vger.kernel.org, Tony SIM , Magnus Damm , Simon Horman , Kuninori Morimoto List-Id: linux-input@vger.kernel.org Hi Bastian, Thanks for the patch. On Monday 08 April 2013 14:52:27 Bastian Hecht wrote: > We no longer need to set up the reset pin for the st1232 in the board > code, but can pass the GPIO number via the platform data to the driver. > This results in a cleaner grouping of the device setup. > > Signed-off-by: Bastian Hecht Acked-by: Laurent Pinchart > --- > v2: > reset_pin changed to reset_gpio > > arch/arm/mach-shmobile/board-armadillo800eva.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c > b/arch/arm/mach-shmobile/board-armadillo800eva.c index bf4c3d2..d1c1ff4 > 100644 > --- a/arch/arm/mach-shmobile/board-armadillo800eva.c > +++ b/arch/arm/mach-shmobile/board-armadillo800eva.c > @@ -24,6 +24,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -997,10 +998,15 @@ static struct platform_device i2c_gpio_device = { > }; > > /* I2C */ > +static struct st1232_pdata st1232_i2c0_pdata = { > + .reset_gpio = 166, > +}; > + > static struct i2c_board_info i2c0_devices[] = { > { > I2C_BOARD_INFO("st1232-ts", 0x55), > .irq = irq_pin(10), > + .platform_data = &st1232_i2c0_pdata, > }, > { > I2C_BOARD_INFO("wm8978", 0x1a), > @@ -1120,7 +1126,6 @@ static void __init eva_init(void) > > /* Touchscreen */ > gpio_request(GPIO_FN_IRQ10, NULL); /* TP_INT */ > - gpio_request_one(166, GPIOF_OUT_INIT_HIGH, NULL); /* TP_RST_B */ > > /* GETHER */ > gpio_request(GPIO_FN_ET_CRS, NULL); -- Regards, Laurent Pinchart