]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf92c559e21949ef13c096ffb63387575dc687ca5
treeb91f73f1376c946b8a7321442fe2379c61ae30da
parent675fcb57285ff1c49114d9f449025a87d7e4ef98
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