drm/bridge: ptn3460: Pass flags to devm_gpiod_get()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 19 May 2015 07:15:56 +0000 (09:15 +0200)
committerThierry Reding <treding@nvidia.com>
Tue, 19 May 2015 08:08:04 +0000 (10:08 +0200)
commitc06ea0ada75bd0ea6b92d592e7f69e64455520b4
treec6cb4e6a06aaaf2b4d7a0c80159dd701838e71ae
parenta92bf307b56288c056dea7dc3dc05bb6d3cf71d8
drm/bridge: ptn3460: Pass flags to devm_gpiod_get()

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.

Use this to simplify the driver. Furthermore this is one caller less
that stops us making the flags argument to gpiod_get*() mandatory.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/bridge/ptn3460.c