Re: [PATCH 10/21] leds: gpio: make legacy gpiolib interface optional
From: Linus Walleij
Date: Mon Aug 18 2025 - 11:39:41 EST
On Fri, Aug 8, 2025 at 5:22 PM Arnd Bergmann <arnd@xxxxxxxxxx> wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> There are still a handful of ancient mips/armv5/sh boards that use the
> gpio_led:gpio member to pass an old-style gpio number, but all modern
> users have been converted to gpio descriptors.
>
> Make the code that deals with this optional so the legacy interfaces
> can be left out for all normal builds.
>
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
I like this, it cleans up things for current systems so they do not need
to carry around so much legacy.
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
Yours,
Linus Walleij