linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v2] extcon: usb-gpio: use flags argument of devm_gpiod_get to set direction
       [not found] <1432037910-27614-1-git-send-email-u.kleine-koenig@pengutronix.de>
@ 2015-05-20  1:33 ` Chanwoo Choi
  2015-05-20  6:45   ` Uwe Kleine-König
  0 siblings, 1 reply; 2+ messages in thread
From: Chanwoo Choi @ 2015-05-20  1:33 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: MyungJoo Ham, Roger Quadros, Felipe Balbi, kernel, Linus Walleij,
	Alexandre Courbot, linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] extcon: usb-gpio: use flags argument of devm_gpiod_get to set direction
  2015-05-20  1:33 ` [PATCH v2] extcon: usb-gpio: use flags argument of devm_gpiod_get to set direction Chanwoo Choi
@ 2015-05-20  6:45   ` Uwe Kleine-König
  0 siblings, 0 replies; 2+ messages in thread
From: Uwe Kleine-König @ 2015-05-20  6:45 UTC (permalink / raw)
  To: Chanwoo Choi
  Cc: Alexandre Courbot, Linus Walleij, linux-kernel, Felipe Balbi,
	MyungJoo Ham, kernel, Roger Quadros

Hi Chanwoo,

On Wed, May 20, 2015 at 10:33:18AM +0900, Chanwoo Choi wrote:
> You must send the extcon patch to the linux-kernel@vger.kernel.org.
sigh, I forget that on the first submission already and just copyied the
recipients for v2.

> Applied it.
Thanks
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-20  6:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1432037910-27614-1-git-send-email-u.kleine-koenig@pengutronix.de>
2015-05-20  1:33 ` [PATCH v2] extcon: usb-gpio: use flags argument of devm_gpiod_get to set direction Chanwoo Choi
2015-05-20  6:45   ` Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).