Messages in this thread | | | Date | Fri, 12 Jun 2015 09:12:39 +0200 | From | Uwe Kleine-König <> | Subject | Re: [PATCH] phy: tusb1210: make better use of gpiod API |
| |
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/ |
| |