]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit376b1e15403897020b30d71c9bf844d54bf1e104
treec6cb4e6a06aaaf2b4d7a0c80159dd701838e71ae
parent312ac22e61767d5ce975400c586ba6c022d25cb1
drm/bridge: ptn3460: 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/ptn3460.c