]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dp: use flags argument of devm_gpiod_get to set direction
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 6 Jul 2015 09:09:41 +0000 (11:09 +0200)
committerRob Clark <robdclark@gmail.com>
Sat, 15 Aug 2015 22:27:18 +0000 (18:27 -0400)
commit48d062fbfb1865990138fe2022c1fb9ff6482b5d
tree06f8409101c255cc32e1b28cc2a06d7c596a2400
parent2aac250cd5cc2b731bd65b5ca21f0055f34d0bf2
drm/msm/dp: use flags argument of devm_gpiod_get to set direction

Since f9251f4c2347 (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.

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>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/edp/edp_ctrl.c