]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/tilcdc: panel: make better use of gpiod API
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 11 Feb 2015 16:32:53 +0000 (17:32 +0100)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 6 Jul 2015 08:10:21 +0000 (10:10 +0200)
commit26a5bd26499fba331ecaa1e8ce8cc2b8c6fac569
treebf61d565d6b910e87fea709bd53a367cc7177d6a
parent89ae3d3b9a384e75158f71ea9b878c8a45f3d582
drm/tilcdc: panel: make better use of gpiod API

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.

Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
drivers/gpu/drm/tilcdc/tilcdc_panel.c