power: reset: gpio-poweroff: let devm_gpiod_get set direction of gpio
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 18 May 2015 20:45:06 +0000 (22:45 +0200)
committerSebastian Reichel <sre@kernel.org>
Sat, 23 May 2015 18:03:30 +0000 (20:03 +0200)
commita34c0a8bf8caae7a82de08dbcca2c7c11907c805
treee78a15892ae53803b6aac08fc63f0530de44b8b0
parentb01e7c3b803e6f0498d4db0b124e3b4efb5ac728
power: reset: gpio-poweroff: let devm_gpiod_get set direction of gpio

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.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/reset/gpio-poweroff.c