gpio: reorganize drivers
Subsystems (9)
PATCH 1/1 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
---
drivers/gpio/Kconfig | 32 ++++-----------
drivers/gpio/Makefile | 81 ++++++++++++++++++++------------------
drivers/gpio/gpio-74x164.c | 0
drivers/gpio/gpio-ab8500.c | 0
drivers/gpio/gpio-adp5520.c | 0
drivers/gpio/gpio-adp5588.c | 0
drivers/gpio/gpio-bt8xx.c | 0
drivers/gpio/gpio-cs5535.c | 0
drivers/gpio/gpio-ep93xx.c | 2 -
drivers/gpio/gpio-exynos4.c | 5 +-
drivers/gpio/gpio-generic.c | 6 +--
drivers/gpio/gpio-it8761e.c | 2 -
drivers/gpio/gpio-janz-ttl.c | 0
drivers/gpio/gpio-langwell.c | 4 +-
drivers/gpio/gpio-max7300.c | 2 -
drivers/gpio/gpio-max7301.c | 2 -
drivers/gpio/gpio-max730x.c | 2 -
drivers/gpio/gpio-max732x.c | 2 -
drivers/gpio/gpio-mc33880.c | 2 -
drivers/gpio/gpio-mcp23s08.c | 2 -
drivers/gpio/gpio-ml-ioh.c | 0
drivers/gpio/gpio-pca953x.c | 2 -
drivers/gpio/gpio-pcf857x.c | 2 -
drivers/gpio/gpio-pch.c | 0
drivers/gpio/gpio-pl061.c | 4 --
drivers/gpio/gpio-plat-samsung.c | 3 -
drivers/gpio/gpio-rdc321x.c | 0
drivers/gpio/gpio-s5pc100.c | 5 +-
drivers/gpio/gpio-s5pv210.c | 5 +-
drivers/gpio/gpio-sch.c | 2 -
drivers/gpio/gpio-stmpe.c | 0
drivers/gpio/gpio-sx150x.c | 0
drivers/gpio/gpio-tc3589x.c | 0
drivers/gpio/gpio-timberdale.c | 2 -
drivers/gpio/gpio-tps65910.c | 2 -
drivers/gpio/gpio-twl4030.c | 2 -
drivers/gpio/gpio-u300.c | 5 --
drivers/gpio/gpio-ucb1400.c | 0
drivers/gpio/gpio-vr41xx.c | 0
drivers/gpio/gpio-vx855.c | 0
drivers/gpio/gpio-wm831x.c | 2 -
drivers/gpio/gpio-wm8350.c | 2 -
drivers/gpio/gpio-wm8994.c | 2 -
drivers/gpio/gpio-xilinx.c | 0
44 files changed, 78 insertions(+), 106 deletions(-)
rename drivers/gpio/{74x164.c => gpio-74x164.c} (100%)
rename drivers/gpio/{ab8500-gpio.c => gpio-ab8500.c} (100%)
rename drivers/gpio/{adp5520-gpio.c => gpio-adp5520.c} (100%)
rename drivers/gpio/{adp5588-gpio.c => gpio-adp5588.c} (100%)
rename drivers/gpio/{bt8xxgpio.c => gpio-bt8xx.c} (100%)
rename drivers/gpio/{cs5535-gpio.c => gpio-cs5535.c} (100%)
rename drivers/gpio/{basic_mmio_gpio.c => gpio-generic.c} (99%)
rename drivers/gpio/{it8761e_gpio.c => gpio-it8761e.c} (98%)
rename drivers/gpio/{janz-ttl.c => gpio-janz-ttl.c} (100%)
rename drivers/gpio/{langwell_gpio.c => gpio-langwell.c} (99%)
rename drivers/gpio/{max7300.c => gpio-max7300.c} (98%)
rename drivers/gpio/{max7301.c => gpio-max7301.c} (98%)
rename drivers/gpio/{max730x.c => gpio-max730x.c} (99%)
rename drivers/gpio/{max732x.c => gpio-max732x.c} (99%)
rename drivers/gpio/{mc33880.c => gpio-mc33880.c} (98%)
rename drivers/gpio/{mcp23s08.c => gpio-mcp23s08.c} (99%)
rename drivers/gpio/{ml_ioh_gpio.c => gpio-ml-ioh.c} (100%)
rename drivers/gpio/{pca953x.c => gpio-pca953x.c} (99%)
rename drivers/gpio/{pcf857x.c => gpio-pcf857x.c} (99%)
rename drivers/gpio/{pch_gpio.c => gpio-pch.c} (100%)
rename drivers/gpio/{pl061.c => gpio-pl061.c} (99%)
rename drivers/gpio/{rdc321x-gpio.c => gpio-rdc321x.c} (100%)
rename drivers/gpio/{sch_gpio.c => gpio-sch.c} (99%)
rename drivers/gpio/{stmpe-gpio.c => gpio-stmpe.c} (100%)
rename drivers/gpio/{sx150x.c => gpio-sx150x.c} (100%)
rename drivers/gpio/{tc3589x-gpio.c => gpio-tc3589x.c} (100%)
rename drivers/gpio/{timbgpio.c => gpio-timberdale.c} (99%)
rename drivers/gpio/{tps65910-gpio.c => gpio-tps65910.c} (98%)
rename drivers/gpio/{twl4030-gpio.c => gpio-twl4030.c} (99%)
rename drivers/gpio/{ucb1400_gpio.c => gpio-ucb1400.c} (100%)
rename drivers/gpio/{vr41xx_giu.c => gpio-vr41xx.c} (100%)
rename drivers/gpio/{vx855_gpio.c => gpio-vx855.c} (100%)
rename drivers/gpio/{wm831x-gpio.c => gpio-wm831x.c} (99%)
rename drivers/gpio/{wm8350-gpiolib.c => gpio-wm8350.c} (98%)
rename drivers/gpio/{wm8994-gpio.c => gpio-wm8994.c} (99%)
rename drivers/gpio/{xilinx_gpio.c => gpio-xilinx.c} (100%) drivers/gpio/Kconfig | 32 ++------
drivers/gpio/Makefile | 81 ++++++++++----------
drivers/gpio/{74x164.c => gpio-74x164.c} | 0
drivers/gpio/{ab8500-gpio.c => gpio-ab8500.c} | 0
drivers/gpio/{adp5520-gpio.c => gpio-adp5520.c} | 0
drivers/gpio/{adp5588-gpio.c => gpio-adp5588.c} | 0
drivers/gpio/{bt8xxgpio.c => gpio-bt8xx.c} | 0
drivers/gpio/{cs5535-gpio.c => gpio-cs5535.c} | 0
drivers/gpio/gpio-ep93xx.c | 2 -
drivers/gpio/gpio-exynos4.c | 5 +-
drivers/gpio/{basic_mmio_gpio.c => gpio-generic.c} | 6 +-
drivers/gpio/{it8761e_gpio.c => gpio-it8761e.c} | 2 +-
drivers/gpio/{janz-ttl.c => gpio-janz-ttl.c} | 0
drivers/gpio/{langwell_gpio.c => gpio-langwell.c} | 4 +-
drivers/gpio/{max7300.c => gpio-max7300.c} | 2 -
drivers/gpio/{max7301.c => gpio-max7301.c} | 2 -
drivers/gpio/{max730x.c => gpio-max730x.c} | 2 -
drivers/gpio/{max732x.c => gpio-max732x.c} | 2 +-
drivers/gpio/{mc33880.c => gpio-mc33880.c} | 2 +-
drivers/gpio/{mcp23s08.c => gpio-mcp23s08.c} | 2 +-
drivers/gpio/{ml_ioh_gpio.c => gpio-ml-ioh.c} | 0
drivers/gpio/{pca953x.c => gpio-pca953x.c} | 2 +-
drivers/gpio/{pcf857x.c => gpio-pcf857x.c} | 2 +-
drivers/gpio/{pch_gpio.c => gpio-pch.c} | 0
drivers/gpio/{pl061.c => gpio-pl061.c} | 4 +-
drivers/gpio/gpio-plat-samsung.c | 3 +-
drivers/gpio/{rdc321x-gpio.c => gpio-rdc321x.c} | 0
drivers/gpio/gpio-s5pc100.c | 5 +-
drivers/gpio/gpio-s5pv210.c | 5 +-
drivers/gpio/{sch_gpio.c => gpio-sch.c} | 2 +-
drivers/gpio/{stmpe-gpio.c => gpio-stmpe.c} | 0
drivers/gpio/{sx150x.c => gpio-sx150x.c} | 0
drivers/gpio/{tc3589x-gpio.c => gpio-tc3589x.c} | 0
drivers/gpio/{timbgpio.c => gpio-timberdale.c} | 2 +-
drivers/gpio/{tps65910-gpio.c => gpio-tps65910.c} | 2 +-
drivers/gpio/{twl4030-gpio.c => gpio-twl4030.c} | 2 +-
drivers/gpio/gpio-u300.c | 5 +-
drivers/gpio/{ucb1400_gpio.c => gpio-ucb1400.c} | 0
drivers/gpio/{vr41xx_giu.c => gpio-vr41xx.c} | 0
drivers/gpio/{vx855_gpio.c => gpio-vx855.c} | 0
drivers/gpio/{wm831x-gpio.c => gpio-wm831x.c} | 2 +-
drivers/gpio/{wm8350-gpiolib.c => gpio-wm8350.c} | 2 +-
drivers/gpio/{wm8994-gpio.c => gpio-wm8994.c} | 2 +-
drivers/gpio/{xilinx_gpio.c => gpio-xilinx.c} | 0
44 files changed, 78 insertions(+), 106 deletions(-)drivers/gpio/Kconfig +8 -24
@@ -63,6 +63,9 @@ config GPIO_SYSFS Kernel drivers may also request that a particular GPIO be exported to userspace; this can be useful when debugging. +config GPIO_GENERIC + tristate + # put drivers in the right section, in alphabetical order config GPIO_MAX730X
@@ -70,16 +73,11 @@ config GPIO_MAX730X comment "Memory mapped GPIO drivers:" -config GPIO_BASIC_MMIO_CORE - tristate - help - Provides core functionality for basic memory-mapped GPIO controllers. - -config GPIO_BASIC_MMIO - tristate "Basic memory-mapped GPIO controllers support" - select GPIO_BASIC_MMIO_CORE +config GPIO_GENERIC_PLATFORM + tristate "Generic memory-mapped GPIO controller support (MMIO platform device)" + select GPIO_GENERIC help - Say yes here to support basic memory-mapped GPIO controllers. + Say yes here to support basic platform_device memory-mapped GPIO controllers. config GPIO_IT8761E tristate "IT8761E GPIO support"
@@ -145,9 +143,6 @@ config GPIO_SCH The Intel Tunnel Creek processor has 5 GPIOs powered by the core power rail and 9 from suspend power supply. - This driver can also be built as a module. If so, the module - will be called sch-gpio. - config GPIO_VX855 tristate "VIA VX855/VX875 GPIO" depends on MFD_SUPPORT && PCI
@@ -210,9 +205,6 @@ config GPIO_PCA953X 16 bits: pca9535, pca9539, pca9555, tca6416 - This driver can also be built as a module. If so, the module - will be called pca953x. - config GPIO_PCA953X_IRQ bool "Interrupt controller support for PCA953x" depends on GPIO_PCA953X=y
@@ -304,17 +296,12 @@ config GPIO_ADP5520 This option enables support for on-chip GPIO found on Analog Devices ADP5520 PMICs. - To compile this driver as a module, choose M here: the module will - be called adp5520-gpio. - config GPIO_ADP5588 tristate "ADP5588 I2C GPIO expander" depends on I2C help This option enables support for 18 GPIOs found on Analog Devices ADP5588 GPIO Expanders. - To compile this driver as a module, choose M here: the module will be - called adp5588-gpio. config GPIO_ADP5588_IRQ bool "Interrupt controller support for ADP5588"
@@ -436,9 +423,6 @@ config GPIO_UCB1400 This enables support for the Philips UCB1400 GPIO pins. The UCB1400 is an AC97 audio codec. - To compile this driver as a module, choose M here: the - module will be called ucb1400_gpio. - comment "MODULbus GPIO expanders:" config GPIO_JANZ_TTL
@@ -449,7 +433,7 @@ config GPIO_JANZ_TTL This driver provides support for driving the pins in output mode only. Input mode is not supported. -config AB8500_GPIO +config GPIO_AB8500 bool "ST-Ericsson AB8500 Mixed Signal Circuit gpio functions" depends on AB8500_CORE && BROKEN help
drivers/gpio/Makefile +42 -39
91 lines not on this page · raw message
drivers/gpio/gpio-74x164.c renamed from drivers/gpio/74x164.c +0 -0
drivers/gpio/gpio-ab8500.c renamed from drivers/gpio/ab8500-gpio.c +0 -0
drivers/gpio/gpio-adp5520.c renamed from drivers/gpio/adp5520-gpio.c +0 -0
drivers/gpio/gpio-adp5588.c renamed from drivers/gpio/adp5588-gpio.c +0 -0
drivers/gpio/gpio-bt8xx.c renamed from drivers/gpio/bt8xxgpio.c +0 -0
drivers/gpio/gpio-cs5535.c renamed from drivers/gpio/cs5535-gpio.c +0 -0
drivers/gpio/gpio-ep93xx.c +0 -2
@@ -1,6 +1,4 @@/* -* linux/arch/arm/mach-ep93xx/gpio.c -* * Generic EP93xx GPIO handling * * Copyright (c) 2008 Ryan Mallon <[email protected]>
drivers/gpio/gpio-exynos4.c +2 -3
@@ -1,10 +1,9 @@ -/* linux/arch/arm/mach-exynos4/gpiolib.c +/* +* EXYNOS4 - GPIOlib support * * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. * http://www.samsung.com * -* EXYNOS4 - GPIOlib support -* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation.
drivers/gpio/gpio-generic.c renamed from drivers/gpio/basic_mmio_gpio.c +3 -3
@@ -1,5 +1,5 @@/* -* Driver for basic memory-mapped GPIO controllers. +* Generic driver for memory-mapped GPIO controllers. * * Copyright 2008 MontaVista Software, Inc. * Copyright 2008,2010 Anton Vorontsov <[email protected]>
@@ -404,7 +404,7 @@ int __devinit bgpio_init(struct bgpio_chip *bgc, }EXPORT_SYMBOL_GPL (bgpio_init); -#ifdef CONFIG_GPIO_BASIC_MMIO +#ifdef CONFIG_GPIO_GENERIC_PLATFORM static void __iomem *bgpio_map(struct platform_device *pdev, const char *name,
@@ -541,7 +541,7 @@ static void __exit bgpio_platform_exit(void) }module_exit (bgpio_platform_exit); -#endif /* CONFIG_GPIO_BASIC_MMIO */ +#endif /* CONFIG_GPIO_GENERIC_PLATFORM */ MODULE_DESCRIPTION ("Driver for basic memory-mapped GPIO controllers" );MODULE_AUTHOR ("Anton Vorontsov <[email protected]>" );
drivers/gpio/gpio-it8761e.c renamed from drivers/gpio/it8761e_gpio.c +1 -1
@@ -1,5 +1,5 @@/* -* it8761_gpio.c - GPIO interface for IT8761E Super I/O chip +* GPIO interface for IT8761E Super I/O chip * * Author: Denis Turischev <[email protected]> *
drivers/gpio/gpio-janz-ttl.c renamed from drivers/gpio/janz-ttl.c +0 -0
drivers/gpio/gpio-langwell.c renamed from drivers/gpio/langwell_gpio.c +3 -1
@@ -1,4 +1,6 @@ -/* langwell_gpio.c Moorestown platform Langwell chip GPIO driver +/* +* Moorestown platform Langwell chip GPIO driver +* * Copyright (c) 2008 - 2009, Intel Corporation. * * This program is free software; you can redistribute it and/or modify
drivers/gpio/gpio-max7300.c renamed from drivers/gpio/max7300.c +0 -2
@@ -1,6 +1,4 @@/* -* drivers/gpio/max7300.c -* * Copyright (C) 2009 Wolfram Sang, Pengutronix * * This program is free software; you can redistribute it and/or modify
drivers/gpio/gpio-max7301.c renamed from drivers/gpio/max7301.c +0 -2
@@ -1,6 +1,4 @@/* -* drivers/gpio/max7301.c -* * Copyright (C) 2006 Juergen Beisert, Pengutronix * Copyright (C) 2008 Guennadi Liakhovetski, Pengutronix * Copyright (C) 2009 Wolfram Sang, Pengutronix
drivers/gpio/gpio-max730x.c renamed from drivers/gpio/max730x.c +0 -2
@@ -1,6 +1,4 @@/** -* drivers/gpio/max7301.c -* * Copyright (C) 2006 Juergen Beisert, Pengutronix * Copyright (C) 2008 Guennadi Liakhovetski, Pengutronix * Copyright (C) 2009 Wolfram Sang, Pengutronix
drivers/gpio/gpio-max732x.c renamed from drivers/gpio/max732x.c +1 -1
@@ -1,5 +1,5 @@/* -* max732x.c - I2C Port Expander with 8/16 I/O +* MAX732x I2C Port Expander with 8/16 I/O * * Copyright (C) 2007 Marvell International Ltd. * Copyright (C) 2008 Jack Ren <[email protected]>
drivers/gpio/gpio-mc33880.c renamed from drivers/gpio/mc33880.c +1 -1
@@ -1,5 +1,5 @@/* -* mc33880.c MC33880 high-side/low-side switch GPIO driver +* MC33880 high-side/low-side switch GPIO driver * Copyright (c) 2009 Intel Corporation * * This program is free software; you can redistribute it and/or modify
drivers/gpio/gpio-mcp23s08.c renamed from drivers/gpio/mcp23s08.c +1 -1
@@ -1,5 +1,5 @@/* -* mcp23s08.c - SPI gpio expander driver +* MCP23S08 SPI gpio expander driver */ #include <linux/kernel.h>
drivers/gpio/gpio-ml-ioh.c renamed from drivers/gpio/ml_ioh_gpio.c +0 -0
drivers/gpio/gpio-pca953x.c renamed from drivers/gpio/pca953x.c +1 -1
@@ -1,5 +1,5 @@/* -* pca953x.c - 4/8/16 bit I/O ports +* PCA953x 4/8/16 bit I/O ports * * Copyright (C) 2005 Ben Gardner <[email protected]> * Copyright (C) 2007 Marvell International Ltd.
drivers/gpio/gpio-pcf857x.c renamed from drivers/gpio/pcf857x.c +1 -1
@@ -1,5 +1,5 @@/* -* pcf857x - driver for pcf857x, pca857x, and pca967x I2C GPIO expanders +* Driver for pcf857x, pca857x, and pca967x I2C GPIO expanders * * Copyright (C) 2007 David Brownell *
drivers/gpio/gpio-pch.c renamed from drivers/gpio/pch_gpio.c +0 -0
drivers/gpio/gpio-pl061.c renamed from drivers/gpio/pl061.c +1 -3
@@ -1,7 +1,5 @@/* -* linux/drivers/gpio/pl061.c -* -* Copyright (C) 2008, 2009 Provigent Ltd. +* Copyright (C) 2008, 2009 Provigent Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as
drivers/gpio/gpio-plat-samsung.c +1 -2
@@ -1,5 +1,4 @@ -/* arch/arm/plat-samsung/gpiolib.c -* +/* * Copyright 2008 Openmoko, Inc. * Copyright 2008 Simtec Electronics * Ben Dooks <[email protected]>
drivers/gpio/gpio-rdc321x.c renamed from drivers/gpio/rdc321x-gpio.c +0 -0
drivers/gpio/gpio-s5pc100.c +2 -3
@@ -1,4 +1,5 @@ -/* linux/arch/arm/mach-s5pc100/gpiolib.c +/* +* S5PC100 - GPIOlib support * * Copyright (c) 2010 Samsung Electronics Co., Ltd. * http://www.samsung.com
@@ -6,8 +7,6 @@* Copyright 2009 Samsung Electronics Co * Kyungmin Park <[email protected]> * -* S5PC100 - GPIOlib support -* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation.
drivers/gpio/gpio-s5pv210.c +2 -3
@@ -1,10 +1,9 @@ -/* linux/arch/arm/mach-s5pv210/gpiolib.c +/* +* S5PV210 - GPIOlib support * * Copyright (c) 2010 Samsung Electronics Co., Ltd. * http://www.samsung.com/ * -* S5PV210 - GPIOlib support -* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation.
drivers/gpio/gpio-sch.c renamed from drivers/gpio/sch_gpio.c +1 -1
@@ -1,5 +1,5 @@/* -* sch_gpio.c - GPIO interface for Intel Poulsbo SCH +* GPIO interface for Intel Poulsbo SCH * * Copyright (c) 2010 CompuLab Ltd * Author: Denis Turischev <[email protected]>
drivers/gpio/gpio-stmpe.c renamed from drivers/gpio/stmpe-gpio.c +0 -0
drivers/gpio/gpio-sx150x.c renamed from drivers/gpio/sx150x.c +0 -0
drivers/gpio/gpio-tc3589x.c renamed from drivers/gpio/tc3589x-gpio.c +0 -0
drivers/gpio/gpio-timberdale.c renamed from drivers/gpio/timbgpio.c +1 -1
@@ -1,5 +1,5 @@/* -* timbgpio.c timberdale FPGA GPIO driver +* Timberdale FPGA GPIO driver * Copyright (c) 2009 Intel Corporation * * This program is free software; you can redistribute it and/or modify
drivers/gpio/gpio-tps65910.c renamed from drivers/gpio/tps65910-gpio.c +1 -1
@@ -1,5 +1,5 @@/* -* tps65910-gpio.c -- TI TPS6591x +* TI TPS6591x GPIO driver * * Copyright 2010 Texas Instruments Inc. *
drivers/gpio/gpio-twl4030.c renamed from drivers/gpio/twl4030-gpio.c +1 -1
@@ -1,5 +1,5 @@/* -* twl4030_gpio.c -- access to GPIOs on TWL4030/TPS659x0 chips +* Access to GPIOs on TWL4030/TPS659x0 chips * * Copyright (C) 2006-2007 Texas Instruments, Inc. * Copyright (C) 2006 MontaVista Software, Inc.
drivers/gpio/gpio-u300.c +1 -4
@@ -1,11 +1,8 @@/* -* -* arch/arm/mach-u300/gpio.c -* +* U300 GPIO module. * * Copyright (C) 2007-2009 ST-Ericsson AB * License terms: GNU General Public License (GPL) version 2 -* U300 GPIO module. * This can driver either of the two basic GPIO cores * available in the U300 platforms: * COH 901 335 - Used in DB3150 (U300 1.0) and DB3200 (U330 1.0)
drivers/gpio/gpio-ucb1400.c renamed from drivers/gpio/ucb1400_gpio.c +0 -0
drivers/gpio/gpio-vr41xx.c renamed from drivers/gpio/vr41xx_giu.c +0 -0
drivers/gpio/gpio-vx855.c renamed from drivers/gpio/vx855_gpio.c +0 -0
drivers/gpio/gpio-wm831x.c renamed from drivers/gpio/wm831x-gpio.c +1 -1
@@ -1,5 +1,5 @@/* -* wm831x-gpio.c -- gpiolib support for Wolfson WM831x PMICs +* gpiolib support for Wolfson WM831x PMICs * * Copyright 2009 Wolfson Microelectronics PLC. *
drivers/gpio/gpio-wm8350.c renamed from drivers/gpio/wm8350-gpiolib.c +1 -1
@@ -1,5 +1,5 @@/* -* wm835x-gpiolib.c -- gpiolib support for Wolfson WM835x PMICs +* gpiolib support for Wolfson WM835x PMICs * * Copyright 2009 Wolfson Microelectronics PLC. *
drivers/gpio/gpio-wm8994.c renamed from drivers/gpio/wm8994-gpio.c +1 -1
@@ -1,5 +1,5 @@/* -* wm8994-gpio.c -- gpiolib support for Wolfson WM8994 +* gpiolib support for Wolfson WM8994 * * Copyright 2009 Wolfson Microelectronics PLC. *
drivers/gpio/gpio-xilinx.c renamed from drivers/gpio/xilinx_gpio.c +0 -0
Quoted 2 lines · Grant Likely
Sort the gpio makefile and enforce the naming convention gpio-*.c for gpio drivers.
ml_ioh_gpio.c and pch_gpio.c use KBUILD_MODNAME with pci_request_regions, but i think that func only uses it for /proc/ status info, so maybe it's ok ?
-mike
Quoted 7 lines · Mike Frysinger
Quoted 2 lines · Grant Likely
Sort the gpio makefile and enforce the naming convention gpio-*.c for gpio drivers.
ml_ioh_gpio.candpch_gpio.cuseKBUILD_MODNAMEwithpci_request_regions, but i think that func only uses it for/proc/status info, so maybe it's ok ?
I'm also going to go out on a limb and say these are probably not a problem, particularly because they are brand new drivers as of late last year, but I'll let the Tomoyo weigh in on it (cc'd)
g.
Quoted 2 lines · Grant Likely
Sort the gpio makefile and enforce the naming convention gpio-*.c for gpio drivers.
OK, bikeshed colors here, but... what is the benefit of 'drivers/gpio/gpio-xxx.c' vs
just 'drivers/gpio/xxx.c'? Seems like one 'gpio' should be enough for anyone...
- R.
Quoted 7 lines · Roland Dreier
Quoted 2 lines · Grant Likely
Sort the gpio makefile and enforce the naming convention gpio-*.c for gpio drivers.
OK, bikeshed colors here, but... what is the benefit of '
drivers/gpio/gpio-xxx.c' vs
just 'drivers/gpio/xxx.c'? Seems like one 'gpio' should be enough for anyone...
lsmod
g.
Quoted 10 lines · Grant Likely
Quoted 7 lines · Roland Dreier
Quoted 2 lines · Grant Likely
Sort the gpio makefile and enforce the naming convention gpio-*.c for gpio drivers.
OK, bikeshed colors here, but... what is the benefit of '
drivers/gpio/gpio-xxx.c' vs
just 'drivers/gpio/xxx.c'? Seems like one 'gpio' should be enough for anyone...lsmod
Specifically, module names don't give any clues about which directory they were loaded out of, so it is useful to have the module name reflect exactly what the module is for. Second, a lot of these gpio/spi/i2c cores end up being stuffed into an integrated chipset where they all pretty much share the same name, but the drivers are for different functional blocks. ie. gpio-omap.o, spi-omap.o, i2c-omap.o
g.
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.
Quoted 3 lines · Grant Likely
I'm also going to go out on a limb and say these are probably not a problem, particularly because they are brand new drivers as of late last year, but I'll let the Tomoyo weigh in on it (cc'd)
As far as I know, this change doesn't occur any issue. However, I don't have perfect confidence about it. Could you give me any information about concern ?
Signature · 2 lines
tomoya OKI SEMICONDUCTOR CO., LTD.
Quoted 12 lines · Grant Likely
Quoted 10 lines · Grant Likely
Quoted 7 lines · Roland Dreier
Quoted 2 lines · Grant Likely
Sort the gpio makefile and enforce the naming convention gpio-*.c for gpio drivers.
OK, bikeshed colors here, but... what is the benefit of '
drivers/gpio/gpio-xxx.c' vs
just 'drivers/gpio/xxx.c'? Seems like one 'gpio' should be enough for anyone...lsmod
Quoted 7 lines
Specifically, module names don't give any clues about which directory they were loaded out of, so it is useful to have the module name reflect exactly what the module is for. Second, a lot of these gpio/spi/i2c cores end up being stuffed into an integrated chipset where they all pretty much share the same name, but the drivers are for different functional blocks. ie. gpio-omap.o, spi-omap.o, i2c-omap.o
well, more important is the opposite direction ... if we have gpio/omap.c and i2c/omap.c and spi/omap.c, which "omap.ko" is modprobe going to load ?
and if you rmmod omap, which one is going to be unloaded ?
i wonder if the module core even allows for that ... -mike
Quoted 7 lines · Grant Likely
Specifically, module names don't give any clues about which directory they were loaded out of, so it is useful to have the module name reflect exactly what the module is for. Second, a lot of these gpio/spi/i2c cores end up being stuffed into an integrated chipset where they all pretty much share the same name, but the drivers are for different functional blocks. ie. gpio-omap.o, spi-omap.o, i2c-omap.o
OK, makes sense.
- R.