Re: [PATCH 2/4] gpiolib: of: compile of_find_trigger_gpio() conditionally

From: Linus Walleij

Date: Sat Jul 25 2026 - 05:14:08 EST


On Sat, Jul 18, 2026 at 6:13 AM Dmitry Torokhov
<dmitry.torokhov@xxxxxxxxx> wrote:

> Compile of_find_trigger_gpio() and include its entry in the
> of_find_gpio_quirks table only when CONFIG_LEDS_TRIGGER_GPIO is enabled,
> and remove the redundant runtime check.
>
> Assisted-by: Antigravity:gemini-3.5-flash
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>

Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>

Yours,
Linus Walleij