watchdog: gpio: Convert to use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 8 Oct 2017 23:28:47 +0000 (01:28 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Thu, 28 Dec 2017 19:44:57 +0000 (20:44 +0100)
commita2363f9d2f34bbfd9899b3a3b3cc7022e0f85724
tree521413ddfe42f3f1a1e7bf0ff35be18bda107ece
parentd0d0677e8fdfba18582bb2dc4bd07189da598e1d
watchdog: gpio: Convert to use GPIO descriptors

This converts the GPIO watchdog driver to use GPIO descriptors
instead of relying on the old method to read out GPIO numbers
from the device tree and then using those with the old GPIO
API.

The descriptor API keeps track of whether the line is active
low so we can remove all active low handling and rely on the
GPIO descriptor to deal with this for us.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/gpio_wdt.c