Re: [PATCH] gpiolib: make legacy interfaces optional
From: Andy Shevchenko
Date: Wed Jul 23 2025 - 10:17:37 EST
On Wed, Jul 23, 2025 at 10:39:32AM +0200, Bartosz Golaszewski wrote:
> On Tue, Jul 22, 2025 at 5:36 PM Arnd Bergmann <arnd@xxxxxxxxxx> wrote:
...
> > +#ifdef CONFIG_GPIOLIB
> > +#include <linux/gpio/consumer.h>
>
> I want to queue this ASAP but do we really need this guard here?
> consumer.h already guards against !CONFIG_GPIOLIB internally, right?
I probably missed something, but I do not understand why we need this include
at all in the gpio.h.
> > +#endif
--
With Best Regards,
Andy Shevchenko