From: Chanwoo Choi <cw00.choi@samsung.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>,
Roger Quadros <rogerq@ti.com>, Felipe Balbi <balbi@ti.com>,
kernel@pengutronix.de, Linus Walleij <linus.walleij@linaro.org>,
Alexandre Courbot <gnurou@gmail.com>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2] extcon: usb-gpio: use flags argument of devm_gpiod_get to set direction
Date: Wed, 20 May 2015 10:33:18 +0900 [thread overview]
Message-ID: <555BE45E.7010201@samsung.com> (raw)
In-Reply-To: <1432037910-27614-1-git-send-email-u.kleine-koenig@pengutronix.de>
Hi Uwe,
You must send the extcon patch to the linux-kernel@vger.kernel.org.
On 05/19/2015 09:18 PM, Uwe Kleine-König wrote:
> Since 39b2bbe3d715 (gpio: add flags argument to gpiod_get*() functions)
> which appeared in v3.17-rc1, the gpiod_get* functions take an additional
> parameter that allows to specify direction and initial value for output.
>
> Without this patch there is no call to gpiod_direction_input but the
> gpio is used for irq reporting and for that the line should be in input
> mode.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>
> Notes:
> Changes since (implicit) v1, sent with
> Message-Id: 1432020518-19389-1-git-send-email-u.kleine-koenig@pengutronix.de:
>
> - drop Fixes:
> - make it actually compile
>
> drivers/extcon/extcon-usb-gpio.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c
> index e45d1f13f445..df7f3f32e325 100644
> --- a/drivers/extcon/extcon-usb-gpio.c
> +++ b/drivers/extcon/extcon-usb-gpio.c
> @@ -113,7 +113,7 @@ static int usb_extcon_probe(struct platform_device *pdev)
> return -ENOMEM;
>
> info->dev = dev;
> - info->id_gpiod = devm_gpiod_get(&pdev->dev, "id");
> + info->id_gpiod = devm_gpiod_get(&pdev->dev, "id", GPIOD_IN);
> if (IS_ERR(info->id_gpiod)) {
> dev_err(dev, "failed to get ID GPIO\n");
> return PTR_ERR(info->id_gpiod);
>
Applied it.
Thanks,
Chanwoo Choi
next parent reply other threads:[~2015-05-20 1:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1432037910-27614-1-git-send-email-u.kleine-koenig@pengutronix.de>
2015-05-20 1:33 ` Chanwoo Choi [this message]
2015-05-20 6:45 ` Uwe Kleine-König
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=555BE45E.7010201@samsung.com \
--to=cw00.choi@samsung.com \
--cc=balbi@ti.com \
--cc=gnurou@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
--cc=rogerq@ti.com \
--cc=u.kleine-koenig@pengutronix.de \
/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
Powered by JetHome