Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: reorganize drivers

Sort the gpio makefile and enforce the naming convention gpio-*.c for
gpio drivers.

v2: cleaned up filenames in Kconfig and comment blocks
v3: fixup use of BASIC_MMIO to GENERIC_GPIO for mxc

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>

+83 -111
drivers/gpio/74x164.c drivers/gpio/gpio-74x164.c
+13 -29
drivers/gpio/Kconfig
··· 63 63 Kernel drivers may also request that a particular GPIO be 64 64 exported to userspace; this can be useful when debugging. 65 65 66 + config GPIO_GENERIC 67 + tristate 68 + 66 69 # put drivers in the right section, in alphabetical order 67 70 68 71 config GPIO_MAX730X ··· 73 70 74 71 comment "Memory mapped GPIO drivers:" 75 72 76 - config GPIO_BASIC_MMIO_CORE 77 - tristate 73 + config GPIO_GENERIC_PLATFORM 74 + tristate "Generic memory-mapped GPIO controller support (MMIO platform device)" 75 + select GPIO_GENERIC 78 76 help 79 - Provides core functionality for basic memory-mapped GPIO controllers. 80 - 81 - config GPIO_BASIC_MMIO 82 - tristate "Basic memory-mapped GPIO controllers support" 83 - select GPIO_BASIC_MMIO_CORE 84 - help 85 - Say yes here to support basic memory-mapped GPIO controllers. 77 + Say yes here to support basic platform_device memory-mapped GPIO controllers. 86 78 87 79 config GPIO_IT8761E 88 80 tristate "IT8761E GPIO support" ··· 92 94 def_bool y 93 95 depends on CPU_EXYNOS4210 94 96 95 - config GPIO_MXS 96 - def_bool y 97 - depends on ARCH_MXS 98 - 99 97 config GPIO_MXC 100 98 def_bool y 101 99 depends on ARCH_MXC 102 - select GPIO_BASIC_MMIO_CORE 100 + select GPIO_GENERIC 101 + 102 + config GPIO_MXS 103 + def_bool y 104 + depends on ARCH_MXS 103 105 104 106 config GPIO_PLAT_SAMSUNG 105 107 def_bool y ··· 147 149 system from the Suspend-to-RAM state. 148 150 The Intel Tunnel Creek processor has 5 GPIOs powered by the 149 151 core power rail and 9 from suspend power supply. 150 - 151 - This driver can also be built as a module. If so, the module 152 - will be called sch-gpio. 153 152 154 153 config GPIO_VX855 155 154 tristate "VIA VX855/VX875 GPIO" ··· 209 214 tca6408 210 215 211 216 16 bits: pca9535, pca9539, pca9555, tca6416 212 - 213 - This driver can also be built as a module. If so, the module 214 - will be called pca953x. 215 217 216 218 config GPIO_PCA953X_IRQ 217 219 bool "Interrupt controller support for PCA953x" ··· 301 309 This option enables support for on-chip GPIO found 302 310 on Analog Devices ADP5520 PMICs. 303 311 304 - To compile this driver as a module, choose M here: the module will 305 - be called adp5520-gpio. 306 - 307 312 config GPIO_ADP5588 308 313 tristate "ADP5588 I2C GPIO expander" 309 314 depends on I2C 310 315 help 311 316 This option enables support for 18 GPIOs found 312 317 on Analog Devices ADP5588 GPIO Expanders. 313 - To compile this driver as a module, choose M here: the module will be 314 - called adp5588-gpio. 315 318 316 319 config GPIO_ADP5588_IRQ 317 320 bool "Interrupt controller support for ADP5588" ··· 428 441 This enables support for the Philips UCB1400 GPIO pins. 429 442 The UCB1400 is an AC97 audio codec. 430 443 431 - To compile this driver as a module, choose M here: the 432 - module will be called ucb1400_gpio. 433 - 434 444 comment "MODULbus GPIO expanders:" 435 445 436 446 config GPIO_JANZ_TTL ··· 438 454 This driver provides support for driving the pins in output 439 455 mode only. Input mode is not supported. 440 456 441 - config AB8500_GPIO 457 + config GPIO_AB8500 442 458 bool "ST-Ericsson AB8500 Mixed Signal Circuit gpio functions" 443 459 depends on AB8500_CORE && BROKEN 444 460 help
+42 -39
drivers/gpio/Makefile
··· 4 4 5 5 obj-$(CONFIG_GPIOLIB) += gpiolib.o 6 6 7 - obj-$(CONFIG_GPIO_ADP5520) += adp5520-gpio.o 8 - obj-$(CONFIG_GPIO_ADP5588) += adp5588-gpio.o 9 - obj-$(CONFIG_GPIO_BASIC_MMIO_CORE) += basic_mmio_gpio.o 10 - obj-$(CONFIG_GPIO_BASIC_MMIO) += basic_mmio_gpio.o 7 + # Device drivers. Generally keep list sorted alphabetically 8 + obj-$(CONFIG_GPIO_GENERIC) += gpio-generic.o 9 + 10 + obj-$(CONFIG_GPIO_74X164) += gpio-74x164.o 11 + obj-$(CONFIG_GPIO_AB8500) += gpio-ab8500.o 12 + obj-$(CONFIG_GPIO_ADP5520) += gpio-adp5520.o 13 + obj-$(CONFIG_GPIO_ADP5588) += gpio-adp5588.o 14 + obj-$(CONFIG_GPIO_BT8XX) += gpio-bt8xx.o 15 + obj-$(CONFIG_GPIO_CS5535) += gpio-cs5535.o 11 16 obj-$(CONFIG_GPIO_EP93XX) += gpio-ep93xx.o 12 17 obj-$(CONFIG_GPIO_EXYNOS4) += gpio-exynos4.o 18 + obj-$(CONFIG_GPIO_IT8761E) += gpio-it8761e.o 19 + obj-$(CONFIG_GPIO_JANZ_TTL) += gpio-janz-ttl.o 20 + obj-$(CONFIG_GPIO_LANGWELL) += gpio-langwell.o 21 + obj-$(CONFIG_GPIO_MAX730X) += gpio-max730x.o 22 + obj-$(CONFIG_GPIO_MAX7300) += gpio-max7300.o 23 + obj-$(CONFIG_GPIO_MAX7301) += gpio-max7301.o 24 + obj-$(CONFIG_GPIO_MAX732X) += gpio-max732x.o 25 + obj-$(CONFIG_GPIO_MC33880) += gpio-mc33880.o 26 + obj-$(CONFIG_GPIO_MCP23S08) += gpio-mcp23s08.o 27 + obj-$(CONFIG_GPIO_ML_IOH) += gpio-ml-ioh.o 13 28 obj-$(CONFIG_GPIO_MXC) += gpio-mxc.o 14 29 obj-$(CONFIG_GPIO_MXS) += gpio-mxs.o 30 + obj-$(CONFIG_PLAT_NOMADIK) += gpio-nomadik.o 31 + obj-$(CONFIG_ARCH_OMAP) += gpio-omap.o 32 + obj-$(CONFIG_GPIO_PCA953X) += gpio-pca953x.o 33 + obj-$(CONFIG_GPIO_PCF857X) += gpio-pcf857x.o 34 + obj-$(CONFIG_GPIO_PCH) += gpio-pch.o 35 + obj-$(CONFIG_GPIO_PL061) += gpio-pl061.o 36 + obj-$(CONFIG_GPIO_RDC321X) += gpio-rdc321x.o 37 + 15 38 obj-$(CONFIG_GPIO_PLAT_SAMSUNG) += gpio-plat-samsung.o 16 39 obj-$(CONFIG_GPIO_S5PC100) += gpio-s5pc100.o 17 40 obj-$(CONFIG_GPIO_S5PV210) += gpio-s5pv210.o 18 - obj-$(CONFIG_GPIO_LANGWELL) += langwell_gpio.o 19 - obj-$(CONFIG_GPIO_MAX730X) += max730x.o 20 - obj-$(CONFIG_GPIO_MAX7300) += max7300.o 21 - obj-$(CONFIG_GPIO_MAX7301) += max7301.o 22 - obj-$(CONFIG_GPIO_MAX732X) += max732x.o 23 - obj-$(CONFIG_GPIO_MC33880) += mc33880.o 24 - obj-$(CONFIG_GPIO_MCP23S08) += mcp23s08.o 25 - obj-$(CONFIG_GPIO_74X164) += 74x164.o 26 - obj-$(CONFIG_ARCH_OMAP) += gpio-omap.o 27 - obj-$(CONFIG_GPIO_PCA953X) += pca953x.o 28 - obj-$(CONFIG_GPIO_PCF857X) += pcf857x.o 29 - obj-$(CONFIG_GPIO_PCH) += pch_gpio.o 30 - obj-$(CONFIG_GPIO_PL061) += pl061.o 31 - obj-$(CONFIG_GPIO_STMPE) += stmpe-gpio.o 32 - obj-$(CONFIG_GPIO_TC3589X) += tc3589x-gpio.o 33 - obj-$(CONFIG_GPIO_TIMBERDALE) += timbgpio.o 34 - obj-$(CONFIG_GPIO_TWL4030) += twl4030-gpio.o 35 - obj-$(CONFIG_GPIO_UCB1400) += ucb1400_gpio.o 36 - obj-$(CONFIG_GPIO_XILINX) += xilinx_gpio.o 37 - obj-$(CONFIG_GPIO_CS5535) += cs5535-gpio.o 38 - obj-$(CONFIG_GPIO_BT8XX) += bt8xxgpio.o 39 - obj-$(CONFIG_GPIO_IT8761E) += it8761e_gpio.o 40 - obj-$(CONFIG_GPIO_VR41XX) += vr41xx_giu.o 41 - obj-$(CONFIG_GPIO_WM831X) += wm831x-gpio.o 42 - obj-$(CONFIG_GPIO_WM8350) += wm8350-gpiolib.o 43 - obj-$(CONFIG_GPIO_WM8994) += wm8994-gpio.o 44 - obj-$(CONFIG_GPIO_SCH) += sch_gpio.o 41 + 42 + obj-$(CONFIG_GPIO_SCH) += gpio-sch.o 43 + obj-$(CONFIG_GPIO_STMPE) += gpio-stmpe.o 44 + obj-$(CONFIG_GPIO_SX150X) += gpio-sx150x.o 45 + obj-$(CONFIG_GPIO_TC3589X) += gpio-tc3589x.o 46 + obj-$(CONFIG_GPIO_TIMBERDALE) += gpio-timberdale.o 47 + obj-$(CONFIG_GPIO_TPS65910) += gpio-tps65910.o 48 + obj-$(CONFIG_GPIO_TWL4030) += gpio-twl4030.o 45 49 obj-$(CONFIG_MACH_U300) += gpio-u300.o 46 - obj-$(CONFIG_PLAT_NOMADIK) += gpio-nomadik.o 47 - obj-$(CONFIG_GPIO_RDC321X) += rdc321x-gpio.o 48 - obj-$(CONFIG_GPIO_JANZ_TTL) += janz-ttl.o 49 - obj-$(CONFIG_GPIO_SX150X) += sx150x.o 50 - obj-$(CONFIG_GPIO_VX855) += vx855_gpio.o 51 - obj-$(CONFIG_GPIO_ML_IOH) += ml_ioh_gpio.o 52 - obj-$(CONFIG_AB8500_GPIO) += ab8500-gpio.o 53 - obj-$(CONFIG_GPIO_TPS65910) += tps65910-gpio.o 50 + obj-$(CONFIG_GPIO_UCB1400) += gpio-ucb1400.o 51 + obj-$(CONFIG_GPIO_VR41XX) += gpio-vr41xx.o 52 + obj-$(CONFIG_GPIO_VX855) += gpio-vx855.o 53 + obj-$(CONFIG_GPIO_WM831X) += gpio-wm831x.o 54 + obj-$(CONFIG_GPIO_WM8350) += gpio-wm8350.o 55 + obj-$(CONFIG_GPIO_WM8994) += gpio-wm8994.o 56 + obj-$(CONFIG_GPIO_XILINX) += gpio-xilinx.o
drivers/gpio/ab8500-gpio.c drivers/gpio/gpio-ab8500.c
drivers/gpio/adp5520-gpio.c drivers/gpio/gpio-adp5520.c
drivers/gpio/adp5588-gpio.c drivers/gpio/gpio-adp5588.c
+3 -3
drivers/gpio/basic_mmio_gpio.c drivers/gpio/gpio-generic.c
··· 1 1 /* 2 - * Driver for basic memory-mapped GPIO controllers. 2 + * Generic driver for memory-mapped GPIO controllers. 3 3 * 4 4 * Copyright 2008 MontaVista Software, Inc. 5 5 * Copyright 2008,2010 Anton Vorontsov <cbouatmailru@gmail.com> ··· 404 404 } 405 405 EXPORT_SYMBOL_GPL(bgpio_init); 406 406 407 - #ifdef CONFIG_GPIO_BASIC_MMIO 407 + #ifdef CONFIG_GPIO_GENERIC_PLATFORM 408 408 409 409 static void __iomem *bgpio_map(struct platform_device *pdev, 410 410 const char *name, ··· 541 541 } 542 542 module_exit(bgpio_platform_exit); 543 543 544 - #endif /* CONFIG_GPIO_BASIC_MMIO */ 544 + #endif /* CONFIG_GPIO_GENERIC_PLATFORM */ 545 545 546 546 MODULE_DESCRIPTION("Driver for basic memory-mapped GPIO controllers"); 547 547 MODULE_AUTHOR("Anton Vorontsov <cbouatmailru@gmail.com>");
drivers/gpio/bt8xxgpio.c drivers/gpio/gpio-bt8xx.c
drivers/gpio/cs5535-gpio.c drivers/gpio/gpio-cs5535.c
-2
drivers/gpio/gpio-ep93xx.c
··· 1 1 /* 2 - * linux/arch/arm/mach-ep93xx/gpio.c 3 - * 4 2 * Generic EP93xx GPIO handling 5 3 * 6 4 * Copyright (c) 2008 Ryan Mallon <ryan@bluewatersys.com>
+2 -3
drivers/gpio/gpio-exynos4.c
··· 1 - /* linux/arch/arm/mach-exynos4/gpiolib.c 1 + /* 2 + * EXYNOS4 - GPIOlib support 2 3 * 3 4 * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. 4 5 * http://www.samsung.com 5 - * 6 - * EXYNOS4 - GPIOlib support 7 6 * 8 7 * This program is free software; you can redistribute it and/or modify 9 8 * it under the terms of the GNU General Public License version 2 as
+1 -2
drivers/gpio/gpio-plat-samsung.c
··· 1 - /* arch/arm/plat-samsung/gpiolib.c 2 - * 1 + /* 3 2 * Copyright 2008 Openmoko, Inc. 4 3 * Copyright 2008 Simtec Electronics 5 4 * Ben Dooks <ben@simtec.co.uk>
+2 -3
drivers/gpio/gpio-s5pc100.c
··· 1 - /* linux/arch/arm/mach-s5pc100/gpiolib.c 1 + /* 2 + * S5PC100 - GPIOlib support 2 3 * 3 4 * Copyright (c) 2010 Samsung Electronics Co., Ltd. 4 5 * http://www.samsung.com 5 6 * 6 7 * Copyright 2009 Samsung Electronics Co 7 8 * Kyungmin Park <kyungmin.park@samsung.com> 8 - * 9 - * S5PC100 - GPIOlib support 10 9 * 11 10 * This program is free software; you can redistribute it and/or modify 12 11 * it under the terms of the GNU General Public License version 2 as
+2 -3
drivers/gpio/gpio-s5pv210.c
··· 1 - /* linux/arch/arm/mach-s5pv210/gpiolib.c 1 + /* 2 + * S5PV210 - GPIOlib support 2 3 * 3 4 * Copyright (c) 2010 Samsung Electronics Co., Ltd. 4 5 * http://www.samsung.com/ 5 - * 6 - * S5PV210 - GPIOlib support 7 6 * 8 7 * This program is free software; you can redistribute it and/or modify 9 8 * it under the terms of the GNU General Public License version 2 as
+1 -4
drivers/gpio/gpio-u300.c
··· 1 1 /* 2 - * 3 - * arch/arm/mach-u300/gpio.c 4 - * 2 + * U300 GPIO module. 5 3 * 6 4 * Copyright (C) 2007-2009 ST-Ericsson AB 7 5 * License terms: GNU General Public License (GPL) version 2 8 - * U300 GPIO module. 9 6 * This can driver either of the two basic GPIO cores 10 7 * available in the U300 platforms: 11 8 * COH 901 335 - Used in DB3150 (U300 1.0) and DB3200 (U330 1.0)
+1 -1
drivers/gpio/it8761e_gpio.c drivers/gpio/gpio-it8761e.c
··· 1 1 /* 2 - * it8761_gpio.c - GPIO interface for IT8761E Super I/O chip 2 + * GPIO interface for IT8761E Super I/O chip 3 3 * 4 4 * Author: Denis Turischev <denis@compulab.co.il> 5 5 *
drivers/gpio/janz-ttl.c drivers/gpio/gpio-janz-ttl.c
+3 -1
drivers/gpio/langwell_gpio.c drivers/gpio/gpio-langwell.c
··· 1 - /* langwell_gpio.c Moorestown platform Langwell chip GPIO driver 1 + /* 2 + * Moorestown platform Langwell chip GPIO driver 3 + * 2 4 * Copyright (c) 2008 - 2009, Intel Corporation. 3 5 * 4 6 * This program is free software; you can redistribute it and/or modify
-2
drivers/gpio/max7300.c drivers/gpio/gpio-max7300.c
··· 1 1 /* 2 - * drivers/gpio/max7300.c 3 - * 4 2 * Copyright (C) 2009 Wolfram Sang, Pengutronix 5 3 * 6 4 * This program is free software; you can redistribute it and/or modify
-2
drivers/gpio/max7301.c drivers/gpio/gpio-max7301.c
··· 1 1 /* 2 - * drivers/gpio/max7301.c 3 - * 4 2 * Copyright (C) 2006 Juergen Beisert, Pengutronix 5 3 * Copyright (C) 2008 Guennadi Liakhovetski, Pengutronix 6 4 * Copyright (C) 2009 Wolfram Sang, Pengutronix
-2
drivers/gpio/max730x.c drivers/gpio/gpio-max730x.c
··· 1 1 /** 2 - * drivers/gpio/max7301.c 3 - * 4 2 * Copyright (C) 2006 Juergen Beisert, Pengutronix 5 3 * Copyright (C) 2008 Guennadi Liakhovetski, Pengutronix 6 4 * Copyright (C) 2009 Wolfram Sang, Pengutronix
+1 -1
drivers/gpio/max732x.c drivers/gpio/gpio-max732x.c
··· 1 1 /* 2 - * max732x.c - I2C Port Expander with 8/16 I/O 2 + * MAX732x I2C Port Expander with 8/16 I/O 3 3 * 4 4 * Copyright (C) 2007 Marvell International Ltd. 5 5 * Copyright (C) 2008 Jack Ren <jack.ren@marvell.com>
+1 -1
drivers/gpio/mc33880.c drivers/gpio/gpio-mc33880.c
··· 1 1 /* 2 - * mc33880.c MC33880 high-side/low-side switch GPIO driver 2 + * MC33880 high-side/low-side switch GPIO driver 3 3 * Copyright (c) 2009 Intel Corporation 4 4 * 5 5 * This program is free software; you can redistribute it and/or modify
+1 -1
drivers/gpio/mcp23s08.c drivers/gpio/gpio-mcp23s08.c
··· 1 1 /* 2 - * mcp23s08.c - SPI gpio expander driver 2 + * MCP23S08 SPI gpio expander driver 3 3 */ 4 4 5 5 #include <linux/kernel.h>
drivers/gpio/ml_ioh_gpio.c drivers/gpio/gpio-ml-ioh.c
+1 -1
drivers/gpio/pca953x.c drivers/gpio/gpio-pca953x.c
··· 1 1 /* 2 - * pca953x.c - 4/8/16 bit I/O ports 2 + * PCA953x 4/8/16 bit I/O ports 3 3 * 4 4 * Copyright (C) 2005 Ben Gardner <bgardner@wabtec.com> 5 5 * Copyright (C) 2007 Marvell International Ltd.
+1 -1
drivers/gpio/pcf857x.c drivers/gpio/gpio-pcf857x.c
··· 1 1 /* 2 - * pcf857x - driver for pcf857x, pca857x, and pca967x I2C GPIO expanders 2 + * Driver for pcf857x, pca857x, and pca967x I2C GPIO expanders 3 3 * 4 4 * Copyright (C) 2007 David Brownell 5 5 *
drivers/gpio/pch_gpio.c drivers/gpio/gpio-pch.c
+1 -3
drivers/gpio/pl061.c drivers/gpio/gpio-pl061.c
··· 1 1 /* 2 - * linux/drivers/gpio/pl061.c 3 - * 4 - * Copyright (C) 2008, 2009 Provigent Ltd. 2 + * Copyright (C) 2008, 2009 Provigent Ltd. 5 3 * 6 4 * This program is free software; you can redistribute it and/or modify 7 5 * it under the terms of the GNU General Public License version 2 as
drivers/gpio/rdc321x-gpio.c drivers/gpio/gpio-rdc321x.c
+1 -1
drivers/gpio/sch_gpio.c drivers/gpio/gpio-sch.c
··· 1 1 /* 2 - * sch_gpio.c - GPIO interface for Intel Poulsbo SCH 2 + * GPIO interface for Intel Poulsbo SCH 3 3 * 4 4 * Copyright (c) 2010 CompuLab Ltd 5 5 * Author: Denis Turischev <denis@compulab.co.il>
drivers/gpio/stmpe-gpio.c drivers/gpio/gpio-stmpe.c
drivers/gpio/sx150x.c drivers/gpio/gpio-sx150x.c
drivers/gpio/tc3589x-gpio.c drivers/gpio/gpio-tc3589x.c
+1 -1
drivers/gpio/timbgpio.c drivers/gpio/gpio-timberdale.c
··· 1 1 /* 2 - * timbgpio.c timberdale FPGA GPIO driver 2 + * Timberdale FPGA GPIO driver 3 3 * Copyright (c) 2009 Intel Corporation 4 4 * 5 5 * This program is free software; you can redistribute it and/or modify
+1 -1
drivers/gpio/tps65910-gpio.c drivers/gpio/gpio-tps65910.c
··· 1 1 /* 2 - * tps65910-gpio.c -- TI TPS6591x 2 + * TI TPS6591x GPIO driver 3 3 * 4 4 * Copyright 2010 Texas Instruments Inc. 5 5 *
+1 -1
drivers/gpio/twl4030-gpio.c drivers/gpio/gpio-twl4030.c
··· 1 1 /* 2 - * twl4030_gpio.c -- access to GPIOs on TWL4030/TPS659x0 chips 2 + * Access to GPIOs on TWL4030/TPS659x0 chips 3 3 * 4 4 * Copyright (C) 2006-2007 Texas Instruments, Inc. 5 5 * Copyright (C) 2006 MontaVista Software, Inc.
drivers/gpio/ucb1400_gpio.c drivers/gpio/gpio-ucb1400.c
drivers/gpio/vr41xx_giu.c drivers/gpio/gpio-vr41xx.c
drivers/gpio/vx855_gpio.c drivers/gpio/gpio-vx855.c
+1 -1
drivers/gpio/wm831x-gpio.c drivers/gpio/gpio-wm831x.c
··· 1 1 /* 2 - * wm831x-gpio.c -- gpiolib support for Wolfson WM831x PMICs 2 + * gpiolib support for Wolfson WM831x PMICs 3 3 * 4 4 * Copyright 2009 Wolfson Microelectronics PLC. 5 5 *
+1 -1
drivers/gpio/wm8350-gpiolib.c drivers/gpio/gpio-wm8350.c
··· 1 1 /* 2 - * wm835x-gpiolib.c -- gpiolib support for Wolfson WM835x PMICs 2 + * gpiolib support for Wolfson WM835x PMICs 3 3 * 4 4 * Copyright 2009 Wolfson Microelectronics PLC. 5 5 *
+1 -1
drivers/gpio/wm8994-gpio.c drivers/gpio/gpio-wm8994.c
··· 1 1 /* 2 - * wm8994-gpio.c -- gpiolib support for Wolfson WM8994 2 + * gpiolib support for Wolfson WM8994 3 3 * 4 4 * Copyright 2009 Wolfson Microelectronics PLC. 5 5 *
drivers/gpio/xilinx_gpio.c drivers/gpio/gpio-xilinx.c