* Re: [PATCH] phy: tusb1210: make better use of gpiod API
[not found] <1434092399-8290-1-git-send-email-u.kleine-koenig@pengutronix.de>
@ 2015-06-12 7:12 ` Uwe Kleine-König
0 siblings, 0 replies; only message in thread
From: Uwe Kleine-König @ 2015-06-12 7:12 UTC (permalink / raw)
To: Heikki Krogerus, Felipe Balbi, Linus Walleij, Alexandre Courbot,
Kishon Vijay Abraham I
Cc: kernel, linux-kernel
Hello,
Cc += linux-kernel@vger.kernel.org, forgot that on submission.
On Fri, Jun 12, 2015 at 08:59:59AM +0200, 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.
>
> Furthermore there is devm_gpiod_get_optional which is designed to get
> optional gpios.
>
> Simplify driver accordingly.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
> Hello,
>
> note I plan to make the flags parameter mandatory for 4.3. So unless
> this change gets into 4.2, would it be ok to let it go in via the gpio
> tree?
Note, the fix is only necessary if commit 1c14905ef951 (phy: add driver
for TI TUSB1210 ULPI PHY) that currently sits in next makes it into 4.2.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] only message in thread