[PATCH] cleanup gpio includes
Sascha Hauer
s.hauer at pengutronix.de
Sat Aug 17 05:25:29 EDT 2013
Several users include <mach/gpio.h> rather than <gpio.h>. Several
SoCs abuse the gpio headers for iomux stuff. Clean this up and
as a last step remove the need for <mach/gpio.h> for gpiolib users.
Sascha
----------------------------------------------------------------
Sascha Hauer (8):
ARM: AT91: Add missing include
ARM: include <gpio.h> instead of <mach/gpio.h>
ARM: i.MX23: Fix double include protection
ARM: AT91: move iomux definitions to iomux.h
ARM: MXS: move iomux definitions to iomux.h
ARM: Samsung: move iomux definitions to iomux.h
ARM: i.MX: move iomux definitions to iomux.h
ARM: remove include of mach/gpio.h for gpiolib users
arch/arm/boards/animeo_ip/init.c | 1 +
arch/arm/boards/at91rm9200ek/init.c | 3 +-
arch/arm/boards/at91sam9260ek/init.c | 1 +
arch/arm/boards/at91sam9261ek/init.c | 1 +
arch/arm/boards/at91sam9263ek/init.c | 1 +
arch/arm/boards/at91sam9m10g45ek/init.c | 3 +-
arch/arm/boards/at91sam9m10ihd/init.c | 1 +
arch/arm/boards/at91sam9n12ek/init.c | 1 +
arch/arm/boards/at91sam9x5ek/init.c | 1 +
arch/arm/boards/ccxmx51/ccxmx51.c | 1 -
arch/arm/boards/ccxmx51/ccxmx51js.c | 2 +-
arch/arm/boards/chumby_falconwing/falconwing.c | 1 +
arch/arm/boards/dss11/init.c | 1 +
arch/arm/boards/eukrea_cpuimx25/eukrea_cpuimx25.c | 2 +-
arch/arm/boards/eukrea_cpuimx27/eukrea_cpuimx27.c | 2 +-
arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c | 2 +-
arch/arm/boards/eukrea_cpuimx51/eukrea_cpuimx51.c | 2 +-
arch/arm/boards/freescale-mx23-evk/mx23-evk.c | 1 +
arch/arm/boards/freescale-mx25-3-stack/3stack.c | 2 +-
arch/arm/boards/freescale-mx28-evk/mx28-evk.c | 1 +
arch/arm/boards/freescale-mx35-3-stack/3stack.c | 2 +-
arch/arm/boards/freescale-mx51-pdk/board.c | 2 +-
arch/arm/boards/freescale-mx53-smd/board.c | 2 +-
arch/arm/boards/freescale-mx6-arm2/board.c | 2 +-
arch/arm/boards/freescale-mx6-sabrelite/board.c | 3 +-
arch/arm/boards/freescale-mx6-sabresd/board.c | 3 +-
arch/arm/boards/friendlyarm-mini2440/mini2440.c | 3 +-
arch/arm/boards/friendlyarm-mini6410/mini6410.c | 1 +
arch/arm/boards/friendlyarm-tiny210/tiny210.c | 1 +
.../friendlyarm-tiny6410/development-board.c | 1 +
arch/arm/boards/friendlyarm-tiny6410/tiny6410.c | 1 +
arch/arm/boards/guf-cupid/board.c | 2 +-
arch/arm/boards/guf-neso/board.c | 2 +-
arch/arm/boards/imx21ads/imx21ads.c | 2 +-
arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c | 1 +
arch/arm/boards/imx27ads/imx27ads.c | 2 +-
arch/arm/boards/karo-tx25/board.c | 2 +-
arch/arm/boards/karo-tx28/tx28-stk5.c | 1 +
arch/arm/boards/karo-tx28/tx28.c | 1 +
arch/arm/boards/karo-tx51/tx51.c | 2 +-
arch/arm/boards/karo-tx53/board.c | 2 +-
arch/arm/boards/mmccpu/init.c | 3 +-
arch/arm/boards/panda/board.c | 2 +-
arch/arm/boards/pcm037/pcm037.c | 2 +-
arch/arm/boards/pcm038/pcm038.c | 2 +-
arch/arm/boards/pcm038/pcm970.c | 2 +-
arch/arm/boards/pcm043/pcm043.c | 2 +-
arch/arm/boards/pcm049/board.c | 2 +-
arch/arm/boards/phycard-a-xl2/pca-a-xl2.c | 2 +-
arch/arm/boards/phycard-i.MX27/pca100.c | 2 +-
arch/arm/boards/pm9261/init.c | 3 +-
arch/arm/boards/pm9263/init.c | 3 +-
arch/arm/boards/pm9g45/init.c | 3 +-
arch/arm/boards/qil-a926x/init.c | 1 +
arch/arm/boards/sama5d3xek/init.c | 1 +
arch/arm/boards/scb9328/scb9328.c | 1 -
arch/arm/boards/telit-evk-pro3/init.c | 1 +
arch/arm/boards/tny-a926x/init.c | 1 +
arch/arm/boards/tqma53/board.c | 2 +-
arch/arm/boards/usb-a926x/init.c | 1 +
arch/arm/include/asm/gpio.h | 5 +-
arch/arm/mach-at91/at91rm9200_devices.c | 3 +-
arch/arm/mach-at91/at91sam9260_devices.c | 3 +-
arch/arm/mach-at91/at91sam9261_devices.c | 3 +-
arch/arm/mach-at91/at91sam9263_devices.c | 3 +-
arch/arm/mach-at91/at91sam9g45_devices.c | 3 +-
arch/arm/mach-at91/at91sam9n12_devices.c | 3 +-
arch/arm/mach-at91/at91sam9x5_devices.c | 3 +-
arch/arm/mach-at91/gpio.c | 2 +-
arch/arm/mach-at91/include/mach/gpio.h | 268 ---------------------
arch/arm/mach-at91/include/mach/io.h | 1 +
arch/arm/mach-at91/include/mach/iomux.h | 266 ++++++++++++++++++++
arch/arm/mach-at91/sama5d3_devices.c | 3 +-
arch/arm/mach-bcm2835/include/mach/gpio.h | 1 -
arch/arm/mach-clps711x/include/mach/gpio.h | 3 -
arch/arm/mach-highbank/include/mach/gpio.h | 1 -
arch/arm/mach-imx/include/mach/gpio.h | 8 -
arch/arm/mach-imx/include/mach/iomux-v1.h | 1 +
arch/arm/mach-mvebu/include/mach/gpio.h | 6 -
arch/arm/mach-mxs/include/mach/gpio.h | 11 -
arch/arm/mach-mxs/include/mach/iomux-imx23.h | 6 +-
arch/arm/mach-mxs/include/mach/iomux.h | 30 +++
arch/arm/mach-mxs/iomux-imx.c | 1 +
arch/arm/mach-omap/include/mach/gpio.h | 1 -
arch/arm/mach-omap/omap4_generic.c | 1 -
arch/arm/mach-samsung/gpio-s3c24x0.c | 1 +
arch/arm/mach-samsung/gpio-s3c64xx.c | 1 +
arch/arm/mach-samsung/gpio-s5pcxx.c | 1 +
arch/arm/mach-samsung/include/mach/gpio.h | 12 -
arch/arm/mach-samsung/include/mach/iomux.h | 28 +++
arch/arm/mach-tegra/include/mach/gpio.h | 1 -
drivers/spi/atmel_spi.c | 1 +
92 files changed, 420 insertions(+), 365 deletions(-)
create mode 100644 arch/arm/mach-at91/include/mach/iomux.h
delete mode 100644 arch/arm/mach-bcm2835/include/mach/gpio.h
delete mode 100644 arch/arm/mach-clps711x/include/mach/gpio.h
delete mode 100644 arch/arm/mach-highbank/include/mach/gpio.h
delete mode 100644 arch/arm/mach-imx/include/mach/gpio.h
delete mode 100644 arch/arm/mach-mvebu/include/mach/gpio.h
create mode 100644 arch/arm/mach-mxs/include/mach/iomux.h
delete mode 100644 arch/arm/mach-omap/include/mach/gpio.h
create mode 100644 arch/arm/mach-samsung/include/mach/iomux.h
delete mode 100644 arch/arm/mach-tegra/include/mach/gpio.h
More information about the barebox
mailing list