]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit312ac22e61767d5ce975400c586ba6c022d25cb1
treec183d62e5f55d2d07203f49b1d2786e102b028e2
parent3f6ba94cc9a7dc2e4320308f5f42437b68f21a3f
drm/bridge: ps8622: Pass flags to devm_gpiod_get()

Since 5767dae43dee (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