From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Igor Grinberg <grinberg@compulab.co.il>
Cc: linux-input@vger.kernel.org
Subject: Re: [PATCH] input: ads7846: fix gpio_pendown configuration
Date: Tue, 3 May 2011 09:18:18 -0700 [thread overview]
Message-ID: <20110503161818.GD6509@core.coreip.homeip.net> (raw)
In-Reply-To: <1304438573-7692-1-git-send-email-grinberg@compulab.co.il>
On Tue, May 03, 2011 at 07:02:53PM +0300, Igor Grinberg wrote:
> The pendown gpio was requested but not configured for input.
> Request and configure it in one shot.
>
> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
There is no significant change from the previos version of the patch by
Sourav Poddar that I tried to apply and had to revert. Does it compile
if !CONFIG_GENERIC_GPIO?
> ---
> drivers/input/touchscreen/ads7846.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c
> index c24946f..bf067aa 100644
> --- a/drivers/input/touchscreen/ads7846.c
> +++ b/drivers/input/touchscreen/ads7846.c
> @@ -956,7 +956,8 @@ static int __devinit ads7846_setup_pendown(struct spi_device *spi, struct ads784
> ts->get_pendown_state = pdata->get_pendown_state;
> } else if (gpio_is_valid(pdata->gpio_pendown)) {
>
> - err = gpio_request(pdata->gpio_pendown, "ads7846_pendown");
> + err = gpio_request_one(pdata->gpio_pendown, GPIOF_IN,
> + "ads7846_pendown");
> if (err) {
> dev_err(&spi->dev, "failed to request pendown GPIO%d\n",
> pdata->gpio_pendown);
> --
> 1.7.3.4
>
--
Dmitry
next prev parent reply other threads:[~2011-05-03 16:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-03 16:02 [PATCH] input: ads7846: fix gpio_pendown configuration Igor Grinberg
2011-05-03 16:18 ` Dmitry Torokhov [this message]
2011-05-04 6:42 ` Igor Grinberg
2011-05-05 16:13 ` Dmitry Torokhov
2011-05-08 8:44 ` [PATCH v2] " Igor Grinberg
2011-05-11 22:44 ` Dmitry Torokhov
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=20110503161818.GD6509@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=grinberg@compulab.co.il \
--cc=linux-input@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.