drm/bridge: ps8622: Pass flags to devm_gpiod_get()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 19 May 2015 07:03:49 +0000 (09:03 +0200)
committerThierry Reding <treding@nvidia.com>
Tue, 19 May 2015 08:08:04 +0000 (10:08 +0200)
commita92bf307b56288c056dea7dc3dc05bb6d3cf71d8
treec183d62e5f55d2d07203f49b1d2786e102b028e2
parent394e5b6d8651db92fd55eac78747a3b13d40f7b7
drm/bridge: ps8622: 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/ps8622.c
This page took 0.03158 seconds and 5 git commands to generate.