Skip to content

treewide: replace linux/gpio.h

Arnd Bergmann linux-arm-kernel linux-gpio linux-input linux-m68k linux-mips linux-phy linux-rockchip linux-samsung-soc linux-sh linux-sound linux-sunxi lkml soc 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 of 10 patches 6 repliesIn review 1 of 10 applied
  2. v113 patches 13 repliesSuperseded 1 of 13 applied

9 of 10 patches are in this archive. The cover letter announces 10.

Patches in v2 1 of 10 applied

#Subject and filesSizeRepliesApplied
1/10ARM: replace linux/gpio.h inclusionsarch/arm/mach-davinci/da850.c arch/arm/mach-dove/mpp.c arch/arm/mach-mv78xx0/buffalo-wxl-setup.c +41 more+44 -440 repliesApplied
2/10m68k/coldfire: replace linux/gpio.h inclusionsarch/m68k/coldfire/device.c arch/m68k/include/asm/mcfgpio.h+2 -21 reply
3/10mips: replace linux/gpio.h inclusionsarch/mips/alchemy/board-xxs1500.c arch/mips/alchemy/devboards/db1000.c arch/mips/alchemy/devboards/db1200.c +5 more+8 -70 replies
4/10sh: replace linux/gpio.h inclusionsarch/sh/boards/board-magicpanelr2.c arch/sh/boards/board-sh7757lcr.c arch/sh/boards/board-urquell.c +12 more+13 -160 replies
5/10mfd: replace linux/gpio.h inclusionsdrivers/mfd/aat2870-core.c drivers/mfd/arizona-irq.c drivers/mfd/lp3943.c +8 more+10 -111 reply
6/10ASoC: replace linux/gpio.h inclusionssound/soc/codecs/cs42l84.c sound/soc/codecs/cx2072x.c sound/soc/codecs/dmic.c+1 -32 replies
7/10pcmcia: replace linux/gpio.h inclusionsdrivers/pcmcia/bcm63xx_pcmcia.c drivers/pcmcia/db1xxx_ss.c drivers/pcmcia/sa1100_h3600.c +2 more+5 -50 replies
8/10phy: replace linux/gpio.h inclusionsdrivers/phy/broadcom/phy-bcm-ns2-usbdrd.c drivers/phy/rockchip/phy-rockchip-usbdp.c drivers/phy/ti/phy-j721e-wiz.c+1 -30 replies
9/10Input: matrix_keyboard - replace linux/gpio.h inclusiondrivers/input/keyboard/matrix_keypad.c+0 -11 reply

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBartosz GolaszewskiCharles KeepaxLinus Walleij
SeriesR-b
1/10A-b
2/10A-b
3/10A-b
4/10A-b
5/10A-b A-b
6/10A-b A-b
7/10A-b
8/10A-b
9/10A-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 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/10] treewide: replace linux/gpio.h

From: Arnd Bergmann <[email protected]>

The linux/gpio.h header used to be the global definition for the gpio interfaces, with 1100 users back in linux-3.17. In linux-7.2, only about 130 of those remain, so this series cleans out the rest.

In each subsystem, we can replace the header either with linux/gpio/consumer.h for users of the modern gpio descriptor interface, or linux/gpio/legacy.h for the few remaining users of the old number based interface.

All patches in this series can get applied independently, so my preference would be for each subsystem maintainer to apply these directly, with the rest going into the gpio tree at some point.

I've uploaded this to

https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/ config-gpio-legacy-for-7.3

Arnd

v2: dropped two already applied patches,
removed duplicate includes,
dropped final patch to remove linux/gpio.h as it now depends on patches in linux-next

 arch/arm/mach-davinci/da850.c                       | 2 +-
 arch/arm/mach-dove/mpp.c                            | 2 +-
 arch/arm/mach-mv78xx0/buffalo-wxl-setup.c           | 2 +-
 arch/arm/mach-mv78xx0/irq.c                         | 2 +-
 arch/arm/mach-mv78xx0/mpp.c                         | 2 +-
 arch/arm/mach-mvebu/pm.c                            | 2 +-
 arch/arm/mach-mxs/mach-mxs.c                        | 2 +-
 arch/arm/mach-orion5x/board-d2net.c                 | 2 +-
 arch/arm/mach-orion5x/board-rd88f5182.c             | 2 +-
 arch/arm/mach-orion5x/dns323-setup.c                | 2 +-
 arch/arm/mach-orion5x/irq.c                         | 2 +-
 arch/arm/mach-orion5x/kurobox_pro-setup.c           | 2 +-
 arch/arm/mach-orion5x/mv2120-setup.c                | 2 +-
 arch/arm/mach-orion5x/net2big-setup.c               | 2 +-
 arch/arm/mach-orion5x/terastation_pro2-setup.c      | 2 +-
 arch/arm/mach-orion5x/ts209-setup.c                 | 2 +-
 arch/arm/mach-orion5x/ts409-setup.c                 | 2 +-
 arch/arm/mach-pxa/am200epd.c                        | 2 +-
 arch/arm/mach-pxa/am300epd.c                        | 2 +-
 arch/arm/mach-pxa/generic.c                         | 2 +-
 arch/arm/mach-pxa/gumstix.c                         | 2 +-
 arch/arm/mach-pxa/mfp-pxa2xx.c                      | 2 +-
 arch/arm/mach-pxa/pxa25x.c                          | 2 +-
 arch/arm/mach-pxa/pxa27x.c                          | 2 +-
 arch/arm/mach-pxa/reset.c                           | 2 +-
 arch/arm/mach-pxa/sharpsl_pm.c                      | 2 +-
 arch/arm/mach-pxa/spitz.c                           | 2 +-
 arch/arm/mach-pxa/spitz_pm.c                        | 2 +-
 arch/arm/mach-s3c/dev-audio-s3c64xx.c               | 2 +-
 arch/arm/mach-s3c/devs.c                            | 2 +-
 arch/arm/mach-s3c/mach-crag6410.c                   | 2 +-
 arch/arm/mach-s3c/pm-gpio.c                         | 2 +-
 arch/arm/mach-s3c/pm-s3c64xx.c                      | 2 +-
 arch/arm/mach-s3c/setup-fb-24bpp-s3c64xx.c          | 2 +-
 arch/arm/mach-s3c/setup-i2c0-s3c64xx.c              | 2 +-
 arch/arm/mach-s3c/setup-i2c1-s3c64xx.c              | 2 +-
 arch/arm/mach-s3c/setup-keypad-s3c64xx.c            | 2 +-
 arch/arm/mach-s3c/setup-sdhci-gpio-s3c64xx.c        | 2 +-
 arch/arm/mach-s3c/setup-spi-s3c64xx.c               | 2 +-
 arch/arm/mach-sa1100/collie.c                       | 2 +-
 arch/arm/mach-sa1100/generic.c                      | 2 +-
 arch/arm/mach-sa1100/h3600.c                        | 2 +-
 arch/arm/mach-sa1100/h3xxx.c                        | 2 +-
 arch/arm/plat-orion/mpp.c                           | 2 +-
 arch/m68k/coldfire/device.c                         | 2 +-
 arch/m68k/include/asm/mcfgpio.h                     | 2 +-
 arch/mips/alchemy/board-xxs1500.c                   | 2 +-
 arch/mips/alchemy/devboards/db1000.c                | 2 +-
 arch/mips/alchemy/devboards/db1200.c                | 2 +-
 arch/mips/alchemy/devboards/db1550.c                | 2 +-
 arch/mips/bcm47xx/workarounds.c                     | 2 +-
 arch/mips/bcm63xx/boards/board_bcm963xx.c           | 1 +
 arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h | 2 +-
 arch/mips/txx9/rbtx4927/setup.c                     | 2 +-
 arch/sh/boards/board-magicpanelr2.c                 | 2 +-
 arch/sh/boards/board-sh7757lcr.c                    | 2 +-
 arch/sh/boards/board-urquell.c                      | 2 +-
 arch/sh/boards/mach-ap325rxa/setup.c                | 2 +-
 arch/sh/boards/mach-ecovec24/setup.c                | 2 +-
 arch/sh/boards/mach-highlander/pinmux-r7785rp.c     | 2 +-
 arch/sh/boards/mach-kfr2r09/lcd_wqvga.c             | 2 +-
 arch/sh/boards/mach-kfr2r09/setup.c                 | 2 +-
 arch/sh/boards/mach-migor/lcd_qvga.c                | 2 +-
 arch/sh/boards/mach-migor/setup.c                   | 2 +-
 arch/sh/boards/mach-rsk/devices-rsk7203.c           | 2 +-
 arch/sh/boards/mach-rsk/devices-rsk7269.c           | 1 -
 arch/sh/boards/mach-se/7724/setup.c                 | 2 +-
 arch/sh/include/mach-common/mach/magicpanelr2.h     | 2 --
 arch/sh/kernel/cpu/sh4a/setup-shx3.c                | 2 +-
 drivers/gpib/gpio/gpib_bitbang.c                    | 1 -
 drivers/input/keyboard/matrix_keypad.c              | 1 -
 drivers/mfd/aat2870-core.c                          | 2 +-
 drivers/mfd/arizona-irq.c                           | 2 +-
 drivers/mfd/lp3943.c                                | 2 +-
 drivers/mfd/sm501.c                                 | 2 +-
 drivers/mfd/tps6105x.c                              | 2 +-
 drivers/mfd/tps65911-comparator.c                   | 2 +-
 drivers/mfd/wm8994-irq.c                            | 2 +-
 drivers/pcmcia/bcm63xx_pcmcia.c                     | 2 +-
 drivers/pcmcia/db1xxx_ss.c                          | 2 +-
 drivers/pcmcia/sa1100_h3600.c                       | 2 +-
 drivers/pcmcia/soc_common.c                         | 2 +-
 drivers/pcmcia/xxs1500_ss.c                         | 2 +-
 drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c           | 1 -
 drivers/phy/rockchip/phy-rockchip-usbdp.c           | 2 +-
 drivers/phy/ti/phy-j721e-wiz.c                      | 1 -
 include/linux/mfd/lp3943.h                          | 2 +-
 include/linux/mfd/ti-lmu.h                          | 1 -
 include/linux/mfd/tps65910.h                        | 2 +-
 include/linux/mfd/ucb1x00.h                         | 2 +-
 sound/soc/codecs/cs42l84.c                          | 1 -
 sound/soc/codecs/cx2072x.c                          | 2 +-
 sound/soc/codecs/dmic.c                             | 1 -
 93 files changed, 84 insertions(+), 93 deletions(-)
Signature · 31 lines
2.39.5

Cc: Bartosz Golaszewski <[email protected]>
Cc: Andrew Lunn <[email protected]>
Cc: Sebastian Hesselbarth <[email protected]>
Cc: Gregory Clement <[email protected]>
Cc: Frank Li <[email protected]>
Cc: Robert Jarzmik <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Greg Ungerer <[email protected]>
Cc: Thomas Bogendoerfer <[email protected]>
Cc: Hauke Mehrtens <[email protected]>
Cc: "Rafał Miłecki" <[email protected]>
Cc: Yoshinori Sato <[email protected]>
Cc: John Paul Adrian Glaubitz <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Dmitry Torokhov <[email protected]>
Cc: Dominik Brodowski <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]