Skip to content

gpio: generic: rename BGPIOF_ flags and move them to the generic.h header

Bartosz Golaszewski linux-gpio lkml 1 version In review

Get series with b4
b4 am [email protected] change-id 20250917-gpio-generic-flags-62745eff08f2

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2gpio: generic: rename BGPIOF_ flags to GPIO_GENERIC_drivers/gpio/gpio-amdpt.c drivers/gpio/gpio-brcmstb.c drivers/gpio/gpio-cadence.c +19 more+47 -450 replies
2/2gpio: generic: move GPIO_GENERIC_ flags to the correct headerinclude/linux/gpio/driver.h include/linux/gpio/generic.h+10 -101 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchLinus Walleij
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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.

---
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,

Signature · 1 line
Bartosz Golaszewski <[email protected]>