Re: [PATCH] gpiolib: make legacy interfaces optional

From: Andy Shevchenko
Date: Wed Jul 23 2025 - 10:16:16 EST


On Tue, Jul 22, 2025 at 05:35:43PM +0200, Arnd Bergmann wrote:
>
> The traditional interfaces are only used on a small number of ancient
> boards. Make these optional now so they can be disabled by default.

...

> +#ifdef CONFIG_GPIOLIB
> +#include <linux/gpio/consumer.h>
> +#endif

> #ifdef CONFIG_GPIOLIB
> -
> -#include <linux/gpio/consumer.h>
> -

Why is the above needed to be changed?

--
With Best Regards,
Andy Shevchenko