leds: ns2: Convert to GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 7 Jan 2020 14:10:29 +0000 (15:10 +0100)
committerPavel Machek <pavel@ucw.cz>
Wed, 26 Feb 2020 13:34:48 +0000 (14:34 +0100)
commitccbbb117c17eaf108216830bdd1e85a551ccc031
treeb91f73f1376c946b8a7321442fe2379c61ae30da
parentc7896490dd1a4e6b346e8a475e4a433356362770
leds: ns2: Convert to GPIO descriptors

This converts the NS2 LED driver to use GPIO descriptors.
We take care to request the GPIOs "as is" which is what
the current driver goes to lengths to achieve, then we use
GPIOs throughout.

As the nodes for each LED does not have any corresponding
device, we need to use the DT-specific accessors to get these
GPIO descriptors from the device tree.

Cc: Vincent Donnefort <vdonnefort@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Simon Guinot <simon.guinot@sequanux.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-ns2.c