power: poweroff: gpio: convert to use descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 7 Jul 2014 10:34:32 +0000 (12:34 +0200)
committerSebastian Reichel <sre@kernel.org>
Fri, 18 Jul 2014 21:40:23 +0000 (23:40 +0200)
commit86336ba4b7daa8fa71be71b8d5f8e13de526f315
treee36ef17120a3c3875320ad041cce4b3c99f8cffc
parent3dd843e1c26a023dc8d776e5d984c635c642785f
power: poweroff: gpio: convert to use descriptors

This switches the GPIO poweroff driver to use GPIO descriptors
rather than numeral GPIOs. We get rid of the specific inversion
handling as GPIO descriptors know if they are active low or
high and can assert the line properly, so we do not need to
check the flag OF_GPIO_ACTIVE_LOW returned from the old call
of_get_gpio_flags() anymore.

Also convert to use managed resources and use dev_* message
printing while we're at it.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/reset/gpio-poweroff.c