Re: [PATCH] leds: leds-dual-gpio: Add dual GPIO LEDs driver

From: Marek Behun
Date: Thu Mar 11 2021 - 10:40:50 EST


On Thu, 11 Mar 2021 16:38:14 +0100
Marek Behun <marek.behun@xxxxxx> wrote:

> LED_FULL, LED_HALF, LED_OFF are deprecated.
>
> And this driver is redundant. This can be done with leds-regulator,
> with a gpio-regulator.
>
> Marek

Sorry, leds-regulator has only a binary state LED.

Maybe you could extend leds-regulator to be able to use all regulator
states?

Or you can extend leds-gpio driver to support N states via log N
gpios, instead of adding new driver.

Marek