Re: [PATCH] gpiolib: move legacy interface into linux/gpio/legacy.h

From: Andy Shevchenko

Date: Tue Apr 28 2026 - 11:55:00 EST


On Tue, Apr 28, 2026 at 05:45:07PM +0200, Arnd Bergmann wrote:

> Split the old contents from gpio.h for clarity. Ideally any driver
> that still includes linux/gpio.h can now be ported over to use
> either linux/gpio/legacy.h or linux/gpio/consumer.h, with the
> original file getting removed once that is complete.
>
> No functional changes intended for now.

But I'm not sure why. The idea to kill gpio.h completely, no need to keep it
longer than legacy stuff exists. I don't take 'clarity' as a good justification
here, since the old header are still there (however just a shallow wrapper).

--
With Best Regards,
Andy Shevchenko