[PATCH 0/2] gpio: generic: rename BGPIOF_ flags and move them to the generic.h header

Bartosz Golaszewski posted 2 patches 2 weeks, 1 day ago
drivers/gpio/gpio-amdpt.c                 |  2 +-
drivers/gpio/gpio-brcmstb.c               |  2 +-
drivers/gpio/gpio-cadence.c               |  2 +-
drivers/gpio/gpio-ge.c                    |  2 +-
drivers/gpio/gpio-grgpio.c                |  2 +-
drivers/gpio/gpio-hisi.c                  |  3 ++-
drivers/gpio/gpio-hlwd.c                  |  2 +-
drivers/gpio/gpio-ixp4xx.c                |  2 +-
drivers/gpio/gpio-mmio.c                  | 28 ++++++++++++++--------------
drivers/gpio/gpio-mpc8xxx.c               |  4 ++--
drivers/gpio/gpio-mt7621.c                |  2 +-
drivers/gpio/gpio-mxc.c                   |  2 +-
drivers/gpio/gpio-rda.c                   |  2 +-
drivers/gpio/gpio-realtek-otto.c          |  2 +-
drivers/gpio/gpio-sifive.c                |  2 +-
drivers/gpio/gpio-spacemit-k1.c           |  3 ++-
drivers/gpio/gpio-vf610.c                 |  4 ++--
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c |  2 +-
drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c |  2 +-
drivers/pinctrl/nuvoton/pinctrl-wpcm450.c |  2 +-
drivers/pinctrl/stm32/pinctrl-stm32-hdp.c |  2 +-
include/linux/gpio/driver.h               | 10 ----------
include/linux/gpio/generic.h              | 10 ++++++++++
23 files changed, 48 insertions(+), 46 deletions(-)
[PATCH 0/2] gpio: generic: rename BGPIOF_ flags and move them to the generic.h header
Posted by Bartosz Golaszewski 2 weeks, 1 day ago
This is a follow-up to the conversion of gpio-mmio users to the
modernized API: we globally rename the flags called previously BGPIOF_
to use the new prefix matching the gpio_generic naming convention and
move them to linux/gpio/generic.h.

Linus: if you don't mind: please Ack the pinctrl changes as they
obviously all need to go in together through the GPIO tree.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
Bartosz Golaszewski (2):
      gpio: generic: rename BGPIOF_ flags to GPIO_GENERIC_
      gpio: generic: move GPIO_GENERIC_ flags to the correct header

 drivers/gpio/gpio-amdpt.c                 |  2 +-
 drivers/gpio/gpio-brcmstb.c               |  2 +-
 drivers/gpio/gpio-cadence.c               |  2 +-
 drivers/gpio/gpio-ge.c                    |  2 +-
 drivers/gpio/gpio-grgpio.c                |  2 +-
 drivers/gpio/gpio-hisi.c                  |  3 ++-
 drivers/gpio/gpio-hlwd.c                  |  2 +-
 drivers/gpio/gpio-ixp4xx.c                |  2 +-
 drivers/gpio/gpio-mmio.c                  | 28 ++++++++++++++--------------
 drivers/gpio/gpio-mpc8xxx.c               |  4 ++--
 drivers/gpio/gpio-mt7621.c                |  2 +-
 drivers/gpio/gpio-mxc.c                   |  2 +-
 drivers/gpio/gpio-rda.c                   |  2 +-
 drivers/gpio/gpio-realtek-otto.c          |  2 +-
 drivers/gpio/gpio-sifive.c                |  2 +-
 drivers/gpio/gpio-spacemit-k1.c           |  3 ++-
 drivers/gpio/gpio-vf610.c                 |  4 ++--
 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c |  2 +-
 drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c |  2 +-
 drivers/pinctrl/nuvoton/pinctrl-wpcm450.c |  2 +-
 drivers/pinctrl/stm32/pinctrl-stm32-hdp.c |  2 +-
 include/linux/gpio/driver.h               | 10 ----------
 include/linux/gpio/generic.h              | 10 ++++++++++
 23 files changed, 48 insertions(+), 46 deletions(-)
---
base-commit: 05af764719214d6568adb55c8749dec295228da8
change-id: 20250917-gpio-generic-flags-62745eff08f2

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Re: [PATCH 0/2] gpio: generic: rename BGPIOF_ flags and move them to the generic.h header
Posted by Bartosz Golaszewski 1 week ago
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>


On Wed, 17 Sep 2025 10:54:04 +0200, Bartosz Golaszewski wrote:
> This is a follow-up to the conversion of gpio-mmio users to the
> modernized API: we globally rename the flags called previously BGPIOF_
> to use the new prefix matching the gpio_generic naming convention and
> move them to linux/gpio/generic.h.
> 
> Linus: if you don't mind: please Ack the pinctrl changes as they
> obviously all need to go in together through the GPIO tree.
> 
> [...]

I'm queueing this for v6.18 in order to send the entire complete rework
for the upcoming merge window.

[1/2] gpio: generic: rename BGPIOF_ flags to GPIO_GENERIC_
      https://git.kernel.org/brgl/linux/c/63a93d25bcce12580af6dbbaa4d9f3ccd0c9c4d8
[2/2] gpio: generic: move GPIO_GENERIC_ flags to the correct header
      https://git.kernel.org/brgl/linux/c/3fda0cd8fa3b19aa1bb75d55983e02321b0aaf0c

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>