Skip to content

gpiolib cleanups

Arnd Bergmann linux-gpio lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 17 repliesIn review
  2. v18 patches 26 repliesSuperseded

Changes in v2 from the cover letter

- dropped patch 8 after Andy's identical patch was merged
- rebase on latest gpio tree
- leave unused gpio_cansleep() in place for now
- address feedback from Andy Shevchenko

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7gpiolib: remove empty asm/gpio.h filesarch/arm/Kconfig arch/arm/include/asm/gpio.h arch/sh/Kconfig +2 more+1 -681 reply
2/7gpiolib: coldfire: remove custom asm/gpio.harch/m68k/Kconfig.cpu arch/m68k/include/asm/gpio.h drivers/gpio/Kconfig +1 more+0 -1111 reply
3/7gpiolib: remove asm-generic/gpio.hMAINTAINERS arch/m68k/include/asm/mcfgpio.h drivers/gpio/gpio-davinci.c +3 more+85 -1612 replies
4/7gpiolib: remove gpio_set_debounceDocumentation/driver-api/gpio/legacy.rst Documentation/translations/zh_CN/driver-api/gpio/legacy.rst Documentation/translations/zh_TW/gpio.txt +2 more+13 -267 replies
5/7gpiolib: remove legacy gpio_exportDocumentation/admin-guide/gpio/sysfs.rst Documentation/driver-api/gpio/legacy.rst Documentation/translations/zh_CN/driver-api/gpio/legacy.rst +7 more+21 -991 reply
6/7gpiolib: split linux/gpio/driver.h out of linux/gpio.harch/arm/mach-omap1/irq.c arch/arm/mach-orion5x/board-rd88f5182.c arch/arm/mach-s3c/s3c64xx.c +5 more+7 -22 replies
7/7gpiolib: split of_mm_gpio_chip out of linux/of_gpio.harch/powerpc/platforms/44x/Kconfig arch/powerpc/platforms/4xx/gpio.c arch/powerpc/platforms/8xx/Kconfig +12 more+71 -331 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchGeert UytterhoevenAndy ShevchenkoBartosz GolaszewskiLinus Walleij
1/7R-b R-b A-b R-b
2/7R-b R-b A-b R-b
3/7R-b R-b
4/7R-b R-b
5/7R-b R-b
6/7R-b R-b
7/7R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/7] gpiolib cleanups

From: Arnd Bergmann <[email protected]>

These are some older patches I did last year, rebased to linux-next-20230127.

The main goal is to remove some of the legacy bits of the gpiolib interfaces, where the corner cases are easily avoided or replaced with gpio descriptor based interfaces.

Arnd

Changes in v2:
- dropped patch 8 after Andy's identical patch was merged
- rebase on latest gpio tree
- leave unused gpio_cansleep() in place for now
- address feedback from Andy Shevchenko

Cc Andy Shevchenko <[email protected]>
Cc Bartosz Golaszewski <[email protected]>
Cc Christophe Leroy <[email protected]>
Cc Dmitry Torokhov <[email protected]>
Cc Linus Walleij <[email protected]>

Arnd Bergmann (7):
gpiolib: remove empty asm/gpio.h files
gpiolib: coldfire: remove custom asm/gpio.h
gpiolib: remove asm-generic/gpio.h
gpiolib: remove gpio_set_debounce
gpiolib: remove legacy gpio_export
gpiolib: split linux/gpio/driver.h out of linux/gpio.h
gpiolib: split of_mm_gpio_chip out of linux/of_gpio.h

 Documentation/admin-guide/gpio/sysfs.rst      |   2 +-
 Documentation/driver-api/gpio/legacy.rst      |  23 ---
 .../zh_CN/driver-api/gpio/legacy.rst          |  20 ---
 Documentation/translations/zh_TW/gpio.txt     |  19 ---
 MAINTAINERS                                   |   1 -
 arch/arm/Kconfig                              |   1 -
 arch/arm/include/asm/gpio.h                   |  21 ---
 arch/arm/mach-omap1/irq.c                     |   1 +
 arch/arm/mach-omap2/pdata-quirks.c            |   9 +-
 arch/arm/mach-orion5x/board-rd88f5182.c       |   1 +
 arch/arm/mach-s3c/s3c64xx.c                   |   1 +
 arch/arm/mach-sa1100/assabet.c                |   1 +
 arch/arm/plat-orion/gpio.c                    |   1 +
 arch/m68k/Kconfig.cpu                         |   1 -
 arch/m68k/include/asm/gpio.h                  |  95 -----------
 arch/m68k/include/asm/mcfgpio.h               |   2 +-
 arch/powerpc/platforms/44x/Kconfig            |   1 +
 arch/powerpc/platforms/4xx/gpio.c             |   2 +-
 arch/powerpc/platforms/8xx/Kconfig            |   1 +
 arch/powerpc/platforms/8xx/cpm1.c             |   2 +-
 arch/powerpc/platforms/Kconfig                |   2 +
 arch/powerpc/sysdev/cpm_common.c              |   2 +-
 arch/sh/Kconfig                               |   1 -
 arch/sh/boards/board-magicpanelr2.c           |   1 +
 arch/sh/boards/mach-ap325rxa/setup.c          |   7 +-
 arch/sh/include/asm/gpio.h                    |  45 ------
 drivers/gpio/Kconfig                          |  19 ++-
 drivers/gpio/TODO                             |  15 +-
 drivers/gpio/gpio-altera.c                    |   2 +-
 drivers/gpio/gpio-davinci.c                   |   2 -
 drivers/gpio/gpio-mm-lantiq.c                 |   2 +-
 drivers/gpio/gpio-mpc5200.c                   |   2 +-
 drivers/gpio/gpiolib-of.c                     |   3 +
 drivers/gpio/gpiolib-sysfs.c                  |   4 +-
 drivers/input/touchscreen/ads7846.c           |  25 +--
 drivers/media/pci/sta2x11/sta2x11_vip.c       |  10 +-
 drivers/net/ieee802154/ca8210.c               |   3 +-
 .../broadcom/brcm80211/brcmsmac/led.c         |   1 +
 drivers/pinctrl/core.c                        |   1 -
 drivers/soc/fsl/qe/gpio.c                     |   2 +-
 include/asm-generic/gpio.h                    | 147 ------------------
 include/linux/gpio.h                          |  91 +++++++----
 include/linux/gpio/legacy-of-mm-gpiochip.h    |  36 +++++
 include/linux/mfd/ucb1x00.h                   |   1 +
 include/linux/of_gpio.h                       |  21 ---
 45 files changed, 174 insertions(+), 476 deletions(-)
 delete mode 100644 arch/arm/include/asm/gpio.h
 delete mode 100644 arch/m68k/include/asm/gpio.h
 delete mode 100644 arch/sh/include/asm/gpio.h
 delete mode 100644 include/asm-generic/gpio.h
 create mode 100644 include/linux/gpio/legacy-of-mm-gpiochip.h
Signature · 1 line
2.39.0