[PATCH 0/2 v7] gpiolib: finish the legacy cleanup

Arnd Bergmann posted 2 patches 2 weeks, 4 days ago
MAINTAINERS                                  |  1 -
arch/mips/txx9/rbtx4927/setup.c              |  2 +-
arch/sh/boards/mach-rsk/devices-rsk7203.c    |  2 +-
drivers/gpio/Kconfig                         |  9 +++++++-
drivers/gpio/TODO                            |  4 +---
drivers/gpio/gpiolib-cdev.c                  |  2 +-
drivers/gpio/gpiolib-legacy.c                |  3 +--
drivers/gpio/gpiolib.c                       |  2 +-
drivers/net/wireless/morsemicro/mm81x/hw.c   |  1 -
drivers/net/wireless/morsemicro/mm81x/yaps.c |  1 -
include/linux/gpio.h                         | 22 --------------------
11 files changed, 14 insertions(+), 35 deletions(-)
delete mode 100644 include/linux/gpio.h
[PATCH 0/2 v7] gpiolib: finish the legacy cleanup
Posted by Arnd Bergmann 2 weeks, 4 days ago
From: Arnd Bergmann <arnd@arndb.de>

These two patches are left from my cleanup series, finishing off the
work to turn off CONFIG_GPIOLIB_LEGACY by default, and removing the
include/linux/gpio.h header.

I had originally planned to send these during the merge window after all
the prerequisites made it in, but didn't finish that before my vacation,
so I'm sending it now.  I suppose this makes them 7.4 material now,
but at least the first one could stil be fast-tracked to 7.3 if there
is a good reason.

The second patch has to remove a few more leftover <linux/gpio.h>
inclusions that made it into 7.3-rc1 either from new code or from
conflicts with other changes.

Arnd Bergmann (2):
  gpiolib: turn off legacy interface by default
  gpiolib: remove linux/gpio.h

 MAINTAINERS                                  |  1 -
 arch/mips/txx9/rbtx4927/setup.c              |  2 +-
 arch/sh/boards/mach-rsk/devices-rsk7203.c    |  2 +-
 drivers/gpio/Kconfig                         |  9 +++++++-
 drivers/gpio/TODO                            |  4 +---
 drivers/gpio/gpiolib-cdev.c                  |  2 +-
 drivers/gpio/gpiolib-legacy.c                |  3 +--
 drivers/gpio/gpiolib.c                       |  2 +-
 drivers/net/wireless/morsemicro/mm81x/hw.c   |  1 -
 drivers/net/wireless/morsemicro/mm81x/yaps.c |  1 -
 include/linux/gpio.h                         | 22 --------------------
 11 files changed, 14 insertions(+), 35 deletions(-)
 delete mode 100644 include/linux/gpio.h

-- 
2.53.0

Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Cc: Kent Gibson <warthog618@gmail.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@vger.kernel.org
Cc: linux-sh@vger.kernel.org
Cc: linux-gpio@vger.kernel.org
Cc: linux-wireless@vger.kernel.org
Re: [PATCH 0/2 v7] gpiolib: finish the legacy cleanup
Posted by Bartosz Golaszewski 1 week, 2 days ago
On Mon, 7 Sep 2026 11:09:54 +0200, Arnd Bergmann <arnd@kernel.org> said:
> From: Arnd Bergmann <arnd@arndb.de>
>
> These two patches are left from my cleanup series, finishing off the
> work to turn off CONFIG_GPIOLIB_LEGACY by default, and removing the
> include/linux/gpio.h header.
>
> I had originally planned to send these during the merge window after all
> the prerequisites made it in, but didn't finish that before my vacation,
> so I'm sending it now.  I suppose this makes them 7.4 material now,
> but at least the first one could stil be fast-tracked to 7.3 if there
> is a good reason.
>
> The second patch has to remove a few more leftover <linux/gpio.h>
> inclusions that made it into 7.3-rc1 either from new code or from
> conflicts with other changes.
>

With acks from SH and MIPS maintainers, I can take it for v7.4 through the
GPIO tree.

Bart
Re: [PATCH 0/2 v7] gpiolib: finish the legacy cleanup
Posted by Linus Walleij 1 week, 2 days ago
On Mon, Sep 7, 2026 at 11:10 AM Arnd Bergmann <arnd@kernel.org> wrote:

> From: Arnd Bergmann <arnd@arndb.de>
>
> These two patches are left from my cleanup series, finishing off the
> work to turn off CONFIG_GPIOLIB_LEGACY by default, and removing the
> include/linux/gpio.h header.

The series:
Reviewed-by: Linus Walleij <linusw@kernel.org>

Yours,
Linus Walleij