projects/linux·commit 58cf279a

Merge tag 'gpio-v4.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio

58cf279a · Linus Torvalds <[email protected]> · 2016-01-17 12:32:01 -08:00

Pull GPIO updates from Linus Walleij:
 "Here is the bulk of GPIO changes for v4.5.

  Notably there are big refactorings mostly by myself, aimed at getting
  the gpio_chip into a shape that makes me believe I can proceed to
  preserve state for a proper userspace ABI (character device) that has
  already been proposed once, but resulted in the feedback that I need
  to go back and restructure stuff.  So I've been restructuring stuff.
  On the way I ran into brokenness (return code from the get_value()
  callback) and had to fix it.  Also, refactored generic GPIO to be
  simpler.

  Some of that is still waiting to trickle down from the subsystems all
  over the kernel that provide random gpio_chips, I've touched every
  single GPIO driver in the kernel now, oh man I didn't know I was
  responsible for so much...

  Apart from that we're churning along as usual.

  I took some effort to test and retest so it should merge nicely and we
  shook out a couple of bugs in -next.

  Infrastructural changes:

   - In struct gpio_chip, rename the .dev node to .parent to better
     reflect the fact that this is not the GPIO struct device
     abstraction.  We will add that soon so this would be totallt
     confusing.

   - It was noted that the driver .get_value() callbacks was sometimes
     reporting negative -ERR values to the gpiolib core, expecting them
     to be propagated to consumer gpiod_get_value() and gpio_get_value()
     calls.  This was not happening, so as there was a mess of drivers
     returning negative errors and some returning "anything else than
     zero" to indicate that a line was active.  As some would have bit
     31 set to indicate "line active" it clashed with negative error
     codes.  This is fixed by the largeish series clamping values in all
     drivers with !!value to [0,1] and then augmenting the code to
     propagate error codes to consumers.  (Includes some ACKed patches
     in other subsystems.)

   - Add a void *data pointer to struct gpio_chip.  The container_of()
     design pattern is indeed very nice, but we want to reform the
     struct gpio_chip to be a non-volative, stateless business, and keep
     states internal to the gpiolib to be able to hold on to the state
     when adding a proper userspace ABI (character device) further down
     the road.  To achieve this, drivers need a handle at the internal
     state that is not dependent on their struct gpio_chip() so we add
     gpiochip_add_data() and gpiochip_get_data() following the pattern
     of many other subsystems.  All the "use gpiochip data pointer"
     patches transforms drivers to this scheme.

   - The Generic GPIO chip header has been merged into the general
     <linux/gpio/driver.h> header, and the custom header for that
     removed.  Instead of having a separate mm_gpio_chip struct for
     these generic drivers, merge that into struct gpio_chip,
     simplifying the code and removing the need for separate and
     confusing includes.

  Misc improvements:

   - Stabilize the way GPIOs are looked up from the ACPI legacy
     specification.

   - Incremental driver features for PXA, PCA953X, Lantiq (patches from
     the OpenWRT community), RCAR, Zynq, PL061, 104-idi-48

  New drivers:

   - Add a GPIO chip to the ALSA SoC AC97 driver.

   - Add a new Broadcom NSP SoC driver (this lands in the pinctrl dir,
     but the branch is merged here too to account for infrastructural
     changes).

   - The sx150x driver now supports the sx1502"

* tag 'gpio-v4.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio: (220 commits)
  gpio: generic: make bgpio_pdata always visible
  gpiolib: fix chip order in gpio list
  gpio: mpc8xxx: Do not use gpiochip_get_data() in mpc8xxx_gpio_save_regs()
  gpio: mm-lantiq: Do not use gpiochip_get_data() in ltq_mm_save_regs()
  gpio: brcmstb: Allow building driver for BMIPS_GENERIC
  gpio: brcmstb: Set endian flags for big-endian MIPS
  gpio: moxart: fix build regression
  gpio: xilinx: Do not use gpiochip_get_data() in xgpio_save_regs()
  leds: pca9532: use gpiochip data pointer
  leds: tca6507: use gpiochip data pointer
  hid: cp2112: use gpiochip data pointer
  bcma: gpio: use gpiochip data pointer
  avr32: gpio: use gpiochip data pointer
  video: fbdev: via: use gpiochip data pointer
  gpio: pch: Optimize pch_gpio_get()
  Revert "pinctrl: lantiq: Implement gpio_chip.to_irq"
  pinctrl: nsp-gpio: use gpiochip data pointer
  pinctrl: vt8500-wmt: use gpiochip data pointer
  pinctrl: exynos5440: use gpiochip data pointer
  pinctrl: at91-pio4: use gpiochip data pointer
  ...
Commit
58cf279acac3080ce03eeea5ca268210b3165fe1
Parents
6606b342 · c474e348

Merge commit. Changes below are compared with the first parent: 6606b342.

Changes

186 files changed · +2692 −2505

FileStatusAddDelContent
Documentation/devicetree/bindings/gpio/gpio-pca953x.txtmodified+1−0View file
Documentation/devicetree/bindings/gpio/gpio-sx150x.txtmodified+2−1View file
Documentation/devicetree/bindings/gpio/gpio-tps65086.txtadded+16−0View file
MAINTAINERSmodified+14−1View file
arch/arm/mach-clps711x/board-autcpu12.cmodified+1−1View file
arch/arm/mach-clps711x/board-p720t.cmodified+1−1View file
arch/arm/mach-imx/mach-mx21ads.cmodified+1−1View file
arch/arm/mach-omap1/board-ams-delta.cmodified+1−1View file
arch/arm/mach-s3c64xx/mach-crag6410.cmodified+1−1View file
arch/avr32/mach-at32ap/pio.cmodified+7−7View file
drivers/bcma/driver_gpio.cmodified+10−15View file
drivers/gpio/Kconfigmodified+21−11View file
drivers/gpio/Makefilemodified+1−0View file
drivers/gpio/gpio-104-idi-48.cadded+343−0View file
drivers/gpio/gpio-104-idio-16.cmodified+130−26View file
drivers/gpio/gpio-74x164.cmodified+28−51View file
drivers/gpio/gpio-74xx-mmio.cmodified+15−22View file
drivers/gpio/gpio-adnp.cmodified+21−26View file
drivers/gpio/gpio-adp5520.cmodified+5−5View file
drivers/gpio/gpio-adp5588.cmodified+7−11View file
drivers/gpio/gpio-altera.cmodified+10−15View file
drivers/gpio/gpio-amd8111.cmodified+8−10View file
drivers/gpio/gpio-amdpt.cmodified+16−18View file
drivers/gpio/gpio-arizona.cmodified+6−11View file
drivers/gpio/gpio-ath79.cmodified+9−11View file
drivers/gpio/gpio-bcm-kona.cmodified+13−18View file
drivers/gpio/gpio-brcmstb.cmodified+48−47View file
drivers/gpio/gpio-bt8xx.cmodified+5−5View file
drivers/gpio/gpio-clps711x.cmodified+14−14View file
drivers/gpio/gpio-crystalcove.cmodified+17−17View file
drivers/gpio/gpio-cs5535.cmodified+8−7View file
drivers/gpio/gpio-da9052.cmodified+9−17View file
drivers/gpio/gpio-da9055.cmodified+6−11View file
drivers/gpio/gpio-davinci.cmodified+11−14View file
drivers/gpio/gpio-dln2.cmodified+19−19View file
drivers/gpio/gpio-dwapb.cmodified+43−49View file
drivers/gpio/gpio-em.cmodified+5−5View file
drivers/gpio/gpio-ep93xx.cmodified+13−12View file
drivers/gpio/gpio-etraxfs.cmodified+21−28View file
drivers/gpio/gpio-f7188x.cmodified+7−11View file
drivers/gpio/gpio-ge.cmodified+12−12View file
drivers/gpio/gpio-generic.cmodified+135−160View file
drivers/gpio/gpio-grgpio.cmodified+32−41View file
drivers/gpio/gpio-ich.cmodified+2−2View file
drivers/gpio/gpio-intel-mid.cmodified+9−14View file
drivers/gpio/gpio-iop.cmodified+1−1View file
drivers/gpio/gpio-it87.cmodified+6−11View file
drivers/gpio/gpio-janz-ttl.cmodified+5−5View file
drivers/gpio/gpio-kempld.cmodified+8−13View file
drivers/gpio/gpio-ks8695.cmodified+1−1View file
drivers/gpio/gpio-loongson.cmodified+1−1View file
drivers/gpio/gpio-lp3943.cmodified+8−13View file
drivers/gpio/gpio-lpc18xx.cmodified+5−10View file
drivers/gpio/gpio-lpc32xx.cmodified+18−23View file
drivers/gpio/gpio-lynxpoint.cmodified+12−12View file
drivers/gpio/gpio-max7300.cmodified+0−1View file
drivers/gpio/gpio-max730x.cmodified+6−6View file
drivers/gpio/gpio-max732x.cmodified+14−20View file
drivers/gpio/gpio-mb86s7x.cmodified+8−13View file
drivers/gpio/gpio-mc33880.cmodified+3−3View file
drivers/gpio/gpio-mc9s08dz60.cmodified+5−12View file
drivers/gpio/gpio-mcp23s08.cmodified+16−14View file
drivers/gpio/gpio-ml-ioh.cmodified+7−7View file
drivers/gpio/gpio-mm-lantiq.cmodified+2−4View file
drivers/gpio/gpio-moxart.cmodified+14−15View file
drivers/gpio/gpio-mpc5200.cmodified+15−24View file
drivers/gpio/gpio-mpc8xxx.cmodified+10−16View file
drivers/gpio/gpio-msic.cmodified+4−4View file
drivers/gpio/gpio-mvebu.cmodified+9−16View file
drivers/gpio/gpio-mxc.cmodified+12−15View file
drivers/gpio/gpio-mxs.cmodified+14−19View file
drivers/gpio/gpio-octeon.cmodified+7−7View file
drivers/gpio/gpio-omap.cmodified+12−12View file
drivers/gpio/gpio-palmas.cmodified+14−17View file
drivers/gpio/gpio-pca953x.cmodified+93−48View file
drivers/gpio/gpio-pcf857x.cmodified+6−7View file
drivers/gpio/gpio-pch.cmodified+11−8View file
drivers/gpio/gpio-pl061.cmodified+25−16View file
drivers/gpio/gpio-pxa.cmodified+242−171View file
drivers/gpio/gpio-rc5t583.cmodified+8−13View file
drivers/gpio/gpio-rcar.cmodified+49−74View file
drivers/gpio/gpio-rdc321x.cmodified+5−5View file
drivers/gpio/gpio-sa1100.cmodified+2−2View file
drivers/gpio/gpio-samsung.cmodified+2−2View file
drivers/gpio/gpio-sch.cmodified+7−9View file
drivers/gpio/gpio-sch311x.cmodified+11−18View file
drivers/gpio/gpio-sodaville.cmodified+6−7View file
drivers/gpio/gpio-spear-spics.cmodified+5−8View file
drivers/gpio/gpio-sta2x11.cmodified+7−7View file
drivers/gpio/gpio-stmpe.cmodified+13−18View file
drivers/gpio/gpio-stp-xway.cmodified+5−7View file
drivers/gpio/gpio-sx150x.cmodified+61−22View file
drivers/gpio/gpio-syscon.cmodified+8−13View file
drivers/gpio/gpio-tb10x.cmodified+7−12View file
drivers/gpio/gpio-tc3589x.cmodified+12−17View file
drivers/gpio/gpio-tegra.cmodified+1−1View file
drivers/gpio/gpio-timberdale.cmodified+5−5View file
drivers/gpio/gpio-tps6586x.cmodified+6−11View file
drivers/gpio/gpio-tps65910.cmodified+6−11View file
drivers/gpio/gpio-tps65912.cmodified+6−8View file
drivers/gpio/gpio-ts5500.cmodified+9−13View file
drivers/gpio/gpio-twl4030.cmodified+11−16View file
drivers/gpio/gpio-twl6040.cmodified+4−4View file
drivers/gpio/gpio-tz1090-pdc.cmodified+8−9View file
drivers/gpio/gpio-tz1090.cmodified+10−11View file
drivers/gpio/gpio-ucb1400.cmodified+7−6View file
drivers/gpio/gpio-vf610.cmodified+10−15View file
drivers/gpio/gpio-viperboard.cmodified+19−27View file
drivers/gpio/gpio-vr41xx.cmodified+3−3View file
drivers/gpio/gpio-vx855.cmodified+4−4View file
drivers/gpio/gpio-wm831x.cmodified+9−14View file
drivers/gpio/gpio-wm8350.cmodified+7−12View file
drivers/gpio/gpio-wm8994.cmodified+9−14View file
drivers/gpio/gpio-xgene-sb.cmodified+16−24View file
drivers/gpio/gpio-xgene.cmodified+7−12View file
drivers/gpio/gpio-xilinx.cmodified+7−11View file
drivers/gpio/gpio-xlp.cmodified+10−15View file
drivers/gpio/gpio-xtensa.cmodified+2−2View file
drivers/gpio/gpio-zevio.cmodified+9−10View file
drivers/gpio/gpio-zx.cmodified+10−15View file
drivers/gpio/gpio-zynq.cmodified+23−29View file
drivers/gpio/gpiolib-acpi.cmodified+25−22View file
drivers/gpio/gpiolib-of.cmodified+9−7View file
drivers/gpio/gpiolib-sysfs.cmodified+3−2View file
drivers/gpio/gpiolib.cmodified+68−42View file
drivers/gpio/gpiolib.hmodified+1−1View file
drivers/hid/hid-cp2112.cmodified+7−11View file
drivers/input/touchscreen/ad7879.cmodified+1−1View file
drivers/leds/leds-pca9532.cmodified+7−7View file
drivers/leds/leds-tca6507.cmodified+3−3View file
drivers/media/dvb-frontends/cxd2820r_core.cmodified+1−1View file
drivers/mfd/dm355evm_msp.cmodified+1−1View file
drivers/mfd/htc-egpio.cmodified+1−1View file
drivers/mfd/htc-i2cpld.cmodified+2−2View file
drivers/mfd/tps65010.cmodified+1−1View file
drivers/mfd/ucb1x00-core.cmodified+1−1View file
drivers/mfd/vexpress-sysreg.cmodified+4−4View file
drivers/pinctrl/bcm/pinctrl-bcm2835.cmodified+6−6View file
drivers/pinctrl/bcm/pinctrl-iproc-gpio.cmodified+1−1View file
drivers/pinctrl/bcm/pinctrl-nsp-gpio.cmodified+8−13View file
drivers/pinctrl/intel/pinctrl-baytrail.cmodified+17−19View file
drivers/pinctrl/intel/pinctrl-cherryview.cmodified+10−12View file
drivers/pinctrl/intel/pinctrl-intel.cmodified+8−9View file
drivers/pinctrl/mediatek/pinctrl-mtk-common.cmodified+8−8View file
drivers/pinctrl/meson/pinctrl-meson.cmodified+7−12View file
drivers/pinctrl/nomadik/pinctrl-abx500.cmodified+13−21View file
drivers/pinctrl/nomadik/pinctrl-nomadik.cmodified+14−19View file
drivers/pinctrl/pinctrl-adi2.cmodified+8−8View file
drivers/pinctrl/pinctrl-amd.cmodified+15−20View file
drivers/pinctrl/pinctrl-as3722.cmodified+5−10View file
drivers/pinctrl/pinctrl-at91-pio4.cmodified+9−7View file
drivers/pinctrl/pinctrl-at91.cmodified+12−16View file
drivers/pinctrl/pinctrl-coh901.cmodified+13−22View file
drivers/pinctrl/pinctrl-digicolor.cmodified+6−6View file
drivers/pinctrl/pinctrl-pistachio.cmodified+10−15View file
drivers/pinctrl/pinctrl-rockchip.cmodified+6−11View file
drivers/pinctrl/pinctrl-st.cmodified+10−13View file
drivers/pinctrl/pinctrl-xway.cmodified+6−6View file
drivers/pinctrl/qcom/pinctrl-msm.cmodified+13−18View file
drivers/pinctrl/qcom/pinctrl-spmi-gpio.cmodified+9−14View file
drivers/pinctrl/qcom/pinctrl-spmi-mpp.cmodified+9−14View file
drivers/pinctrl/qcom/pinctrl-ssbi-gpio.cmodified+8−8View file
drivers/pinctrl/qcom/pinctrl-ssbi-mpp.cmodified+9−9View file
drivers/pinctrl/samsung/pinctrl-exynos.cmodified+2−1View file
drivers/pinctrl/samsung/pinctrl-exynos5440.cmodified+8−8View file
drivers/pinctrl/samsung/pinctrl-samsung.cmodified+6−11View file
drivers/pinctrl/sh-pfc/gpio.cmodified+7−11View file
drivers/pinctrl/sirf/pinctrl-atlas7.cmodified+13−18View file
drivers/pinctrl/sirf/pinctrl-sirf.cmodified+13−18View file
drivers/pinctrl/spear/pinctrl-plgpio.cmodified+12−12View file
drivers/pinctrl/sunxi/pinctrl-sunxi.cmodified+8−8View file
drivers/pinctrl/vt8500/pinctrl-wmt.cmodified+6−6View file
drivers/platform/x86/intel_pmic_gpio.cmodified+2−2View file
drivers/tty/serial/max310x.cmodified+1−1View file
drivers/tty/serial/sc16is7xx.cmodified+1−1View file
drivers/video/fbdev/via/via-gpio.cmodified+7−12View file
include/linux/basic_mmio_gpio.hdeleted+0−80View before deletion
include/linux/gpio/driver.hmodified+70−5View file
include/linux/of_gpio.hmodified+11−2View file
include/linux/platform_data/gpio-rcar.hdeleted+0−29View before deletion
sound/soc/codecs/rt5677.cmodified+1−1View file
sound/soc/codecs/wm5100.cmodified+1−1View file
sound/soc/codecs/wm8903.cmodified+1−1View file
sound/soc/codecs/wm8962.cmodified+1−1View file
sound/soc/codecs/wm8996.cmodified+1−1View file
sound/soc/soc-ac97.cmodified+1−1View file

Only the first 600 diff lines are shown. Download the complete patch.

Documentation/devicetree/bindings/gpio/gpio-pca953x.txt

View file
diff --git a/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt b/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt
index 13df993..6b4a98f 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt
+++ b/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt
@@ -25,6 +25,7 @@ Required properties:
ti,tca6416
ti,tca6424
ti,tca9539
+ onsemi,pca9654
exar,xra1202
Example:

Documentation/devicetree/bindings/gpio/gpio-sx150x.txt

View file
diff --git a/Documentation/devicetree/bindings/gpio/gpio-sx150x.txt b/Documentation/devicetree/bindings/gpio/gpio-sx150x.txt
index ba2bb84..c809acb 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-sx150x.txt
+++ b/Documentation/devicetree/bindings/gpio/gpio-sx150x.txt
@@ -5,7 +5,8 @@ Required properties:
- compatible: should be "semtech,sx1506q",
"semtech,sx1508q",
- "semtech,sx1509q".
+ "semtech,sx1509q",
+ "semtech,sx1502q".
- reg: The I2C slave address for this device.

Documentation/devicetree/bindings/gpio/gpio-tps65086.txt

View file
diff --git a/Documentation/devicetree/bindings/gpio/gpio-tps65086.txt b/Documentation/devicetree/bindings/gpio/gpio-tps65086.txt
new file mode 100644
index 0000000..ba05107
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/gpio-tps65086.txt
@@ -0,0 +1,16 @@
+* TPS65086 GPO Controller bindings
+
+Required properties:
+ - compatible : Should be "ti,tps65086-gpio".
+ - gpio-controller : Marks the device node as a GPIO Controller.
+ - #gpio-cells : Should be two. The first cell is the pin number
+ and the second cell is used to specify flags.
+ See ../gpio/gpio.txt for possible values.
+
+Example:
+
+ gpio4: gpio {
+ compatible = "ti,tps65086-gpio";
+ gpio-controller;
+ #gpio-cells = <2>;
+ };

MAINTAINERS

View file
diff --git a/MAINTAINERS b/MAINTAINERS
index 11073db..d38c324 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -240,6 +240,12 @@ L: [email protected]
S: Maintained
F: drivers/hwmon/abituguru3.c
+ACCES 104-IDI-48 GPIO DRIVER
+M: "William Breathitt Gray" <[email protected]>
+S: Maintained
+F: drivers/gpio/gpio-104-idi-48.c
+
ACCES 104-IDIO-16 GPIO DRIVER
M: "William Breathitt Gray" <[email protected]>
@@ -7821,11 +7827,12 @@ F: drivers/usb/*/*omap*
F: arch/arm/*omap*/usb*
OMAP GPIO DRIVER
-M: Javier Martinez Canillas <[email protected]>
+M: Grygorii Strashko <[email protected]>
M: Santosh Shilimkar <[email protected]>
M: Kevin Hilman <[email protected]>
S: Maintained
+F: Documentation/devicetree/bindings/gpio/gpio-omap.txt
F: drivers/gpio/gpio-omap.c
OMAP/NEWFLOW NANOBONE MACHINE SUPPORT
@@ -8685,6 +8692,12 @@ F: include/sound/pxa2xx-lib.h
F: sound/arm/pxa*
F: sound/soc/pxa/
+PXA GPIO DRIVER
+M: Robert Jarzmik <[email protected]>
+S: Maintained
+F: drivers/gpio/gpio-pxa.c
+
PXA3xx NAND FLASH DRIVER
M: Ezequiel Garcia <[email protected]>

arch/arm/mach-clps711x/board-autcpu12.c

View file
diff --git a/arch/arm/mach-clps711x/board-autcpu12.c b/arch/arm/mach-clps711x/board-autcpu12.c
index c3d9642..ba3d7d1 100644
--- a/arch/arm/mach-clps711x/board-autcpu12.c
+++ b/arch/arm/mach-clps711x/board-autcpu12.c
@@ -31,7 +31,7 @@
#include <linux/mtd/partitions.h>
#include <linux/mtd/nand-gpio.h>
#include <linux/platform_device.h>
-#include <linux/basic_mmio_gpio.h>
+#include <linux/gpio/driver.h>
#include <mach/hardware.h>
#include <asm/sizes.h>

arch/arm/mach-clps711x/board-p720t.c

View file
diff --git a/arch/arm/mach-clps711x/board-p720t.c b/arch/arm/mach-clps711x/board-p720t.c
index e68dd62..80a16a8 100644
--- a/arch/arm/mach-clps711x/board-p720t.c
+++ b/arch/arm/mach-clps711x/board-p720t.c
@@ -28,7 +28,7 @@
#include <linux/leds.h>
#include <linux/sizes.h>
#include <linux/backlight.h>
-#include <linux/basic_mmio_gpio.h>
+#include <linux/gpio/driver.h>
#include <linux/platform_device.h>
#include <linux/mtd/partitions.h>
#include <linux/mtd/nand-gpio.h>

arch/arm/mach-imx/mach-mx21ads.c

View file
diff --git a/arch/arm/mach-imx/mach-mx21ads.c b/arch/arm/mach-imx/mach-mx21ads.c
index 703ce31..9986f9a 100644
--- a/arch/arm/mach-imx/mach-mx21ads.c
+++ b/arch/arm/mach-imx/mach-mx21ads.c
@@ -17,7 +17,7 @@
#include <linux/platform_device.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/physmap.h>
-#include <linux/basic_mmio_gpio.h>
+#include <linux/gpio/driver.h>
#include <linux/gpio.h>
#include <linux/regulator/fixed.h>
#include <linux/regulator/machine.h>

arch/arm/mach-omap1/board-ams-delta.c

View file
diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c
index a95499e..97e6655 100644
--- a/arch/arm/mach-omap1/board-ams-delta.c
+++ b/arch/arm/mach-omap1/board-ams-delta.c
@@ -11,7 +11,7 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
-#include <linux/basic_mmio_gpio.h>
+#include <linux/gpio/driver.h>
#include <linux/gpio.h>
#include <linux/kernel.h>
#include <linux/init.h>

arch/arm/mach-s3c64xx/mach-crag6410.c

View file
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410.c b/arch/arm/mach-s3c64xx/mach-crag6410.c
index f776adc..723f47f 100644
--- a/arch/arm/mach-s3c64xx/mach-crag6410.c
+++ b/arch/arm/mach-s3c64xx/mach-crag6410.c
@@ -29,7 +29,7 @@
#include <linux/pwm_backlight.h>
#include <linux/dm9000.h>
#include <linux/gpio_keys.h>
-#include <linux/basic_mmio_gpio.h>
+#include <linux/gpio/driver.h>
#include <linux/spi/spi.h>
#include <linux/platform_data/pca953x.h>

arch/avr32/mach-at32ap/pio.c

View file
diff --git a/arch/avr32/mach-at32ap/pio.c b/arch/avr32/mach-at32ap/pio.c
index 4f61378..5020057 100644
--- a/arch/avr32/mach-at32ap/pio.c
+++ b/arch/avr32/mach-at32ap/pio.c
@@ -203,7 +203,7 @@ fail:
static int direction_input(struct gpio_chip *chip, unsigned offset)
{
- struct pio_device *pio = container_of(chip, struct pio_device, chip);
+ struct pio_device *pio = gpiochip_get_data(chip);
u32 mask = 1 << offset;
if (!(pio_readl(pio, PSR) & mask))
@@ -215,7 +215,7 @@ static int direction_input(struct gpio_chip *chip, unsigned offset)
static int gpio_get(struct gpio_chip *chip, unsigned offset)
{
- struct pio_device *pio = container_of(chip, struct pio_device, chip);
+ struct pio_device *pio = gpiochip_get_data(chip);
return (pio_readl(pio, PDSR) >> offset) & 1;
}
@@ -224,7 +224,7 @@ static void gpio_set(struct gpio_chip *chip, unsigned offset, int value);
static int direction_output(struct gpio_chip *chip, unsigned offset, int value)
{
- struct pio_device *pio = container_of(chip, struct pio_device, chip);
+ struct pio_device *pio = gpiochip_get_data(chip);
u32 mask = 1 << offset;
if (!(pio_readl(pio, PSR) & mask))
@@ -237,7 +237,7 @@ static int direction_output(struct gpio_chip *chip, unsigned offset, int value)
static void gpio_set(struct gpio_chip *chip, unsigned offset, int value)
{
- struct pio_device *pio = container_of(chip, struct pio_device, chip);
+ struct pio_device *pio = gpiochip_get_data(chip);
u32 mask = 1 << offset;
if (value)
@@ -335,7 +335,7 @@ gpio_irq_setup(struct pio_device *pio, int irq, int gpio_irq)
*/
static void pio_bank_show(struct seq_file *s, struct gpio_chip *chip)
{
- struct pio_device *pio = container_of(chip, struct pio_device, chip);
+ struct pio_device *pio = gpiochip_get_data(chip);
u32 psr, osr, imr, pdsr, pusr, ifsr, mdsr;
unsigned i;
u32 mask;
@@ -397,7 +397,7 @@ static int __init pio_probe(struct platform_device *pdev)
pio->chip.label = pio->name;
pio->chip.base = pdev->id * 32;
pio->chip.ngpio = 32;
- pio->chip.dev = &pdev->dev;
+ pio->chip.parent = &pdev->dev;
pio->chip.owner = THIS_MODULE;
pio->chip.direction_input = direction_input;
@@ -406,7 +406,7 @@ static int __init pio_probe(struct platform_device *pdev)
pio->chip.set = gpio_set;
pio->chip.dbg_show = pio_bank_show;
- gpiochip_add(&pio->chip);
+ gpiochip_add_data(&pio->chip, pio);
gpio_irq_setup(pio, irq, gpio_irq_base);

drivers/bcma/driver_gpio.c

View file
diff --git a/drivers/bcma/driver_gpio.c b/drivers/bcma/driver_gpio.c
index 504899a..98067f7 100644
--- a/drivers/bcma/driver_gpio.c
+++ b/drivers/bcma/driver_gpio.c
@@ -17,14 +17,9 @@
#define BCMA_GPIO_MAX_PINS 32
-static inline struct bcma_drv_cc *bcma_gpio_get_cc(struct gpio_chip *chip)
-{
- return container_of(chip, struct bcma_drv_cc, gpio);
-}
-
static int bcma_gpio_get_value(struct gpio_chip *chip, unsigned gpio)
{
- struct bcma_drv_cc *cc = bcma_gpio_get_cc(chip);
+ struct bcma_drv_cc *cc = gpiochip_get_data(chip);
return !!bcma_chipco_gpio_in(cc, 1 << gpio);
}
@@ -32,14 +27,14 @@ static int bcma_gpio_get_value(struct gpio_chip *chip, unsigned gpio)
static void bcma_gpio_set_value(struct gpio_chip *chip, unsigned gpio,
int value)
{
- struct bcma_drv_cc *cc = bcma_gpio_get_cc(chip);
+ struct bcma_drv_cc *cc = gpiochip_get_data(chip);
bcma_chipco_gpio_out(cc, 1 << gpio, value ? 1 << gpio : 0);
}
static int bcma_gpio_direction_input(struct gpio_chip *chip, unsigned gpio)
{
- struct bcma_drv_cc *cc = bcma_gpio_get_cc(chip);
+ struct bcma_drv_cc *cc = gpiochip_get_data(chip);
bcma_chipco_gpio_outen(cc, 1 << gpio, 0);
return 0;
@@ -48,7 +43,7 @@ static int bcma_gpio_direction_input(struct gpio_chip *chip, unsigned gpio)
static int bcma_gpio_direction_output(struct gpio_chip *chip, unsigned gpio,
int value)
{
- struct bcma_drv_cc *cc = bcma_gpio_get_cc(chip);
+ struct bcma_drv_cc *cc = gpiochip_get_data(chip);
bcma_chipco_gpio_outen(cc, 1 << gpio, 1 << gpio);
bcma_chipco_gpio_out(cc, 1 << gpio, value ? 1 << gpio : 0);
@@ -57,7 +52,7 @@ static int bcma_gpio_direction_output(struct gpio_chip *chip, unsigned gpio,
static int bcma_gpio_request(struct gpio_chip *chip, unsigned gpio)
{
- struct bcma_drv_cc *cc = bcma_gpio_get_cc(chip);
+ struct bcma_drv_cc *cc = gpiochip_get_data(chip);
bcma_chipco_gpio_control(cc, 1 << gpio, 0);
/* clear pulldown */
@@ -70,7 +65,7 @@ static int bcma_gpio_request(struct gpio_chip *chip, unsigned gpio)
static void bcma_gpio_free(struct gpio_chip *chip, unsigned gpio)
{
- struct bcma_drv_cc *cc = bcma_gpio_get_cc(chip);
+ struct bcma_drv_cc *cc = gpiochip_get_data(chip);
/* clear pullup */
bcma_chipco_gpio_pullup(cc, 1 << gpio, 0);
@@ -81,7 +76,7 @@ static void bcma_gpio_free(struct gpio_chip *chip, unsigned gpio)
static void bcma_gpio_irq_unmask(struct irq_data *d)
{
struct gpio_chip *gc = irq_data_get_irq_chip_data(d);
- struct bcma_drv_cc *cc = bcma_gpio_get_cc(gc);
+ struct bcma_drv_cc *cc = gpiochip_get_data(gc);
int gpio = irqd_to_hwirq(d);
u32 val = bcma_chipco_gpio_in(cc, BIT(gpio));
@@ -92,7 +87,7 @@ static void bcma_gpio_irq_unmask(struct irq_data *d)
static void bcma_gpio_irq_mask(struct irq_data *d)
{
struct gpio_chip *gc = irq_data_get_irq_chip_data(d);
- struct bcma_drv_cc *cc = bcma_gpio_get_cc(gc);
+ struct bcma_drv_cc *cc = gpiochip_get_data(gc);
int gpio = irqd_to_hwirq(d);
bcma_chipco_gpio_intmask(cc, BIT(gpio), 0);
@@ -188,7 +183,7 @@ int bcma_gpio_init(struct bcma_drv_cc *cc)
chip->direction_input = bcma_gpio_direction_input;
chip->direction_output = bcma_gpio_direction_output;
chip->owner = THIS_MODULE;
- chip->dev = bcma_bus_get_host_dev(bus);
+ chip->parent = bcma_bus_get_host_dev(bus);
#if IS_BUILTIN(CONFIG_OF)
if (cc->core->bus->hosttype == BCMA_HOSTTYPE_SOC)
chip->of_node = cc->core->dev.of_node;
@@ -216,7 +211,7 @@ int bcma_gpio_init(struct bcma_drv_cc *cc)
else
chip->base = -1;
- err = gpiochip_add(chip);
+ err = gpiochip_add_data(chip, cc);
if (err)
return err;

drivers/gpio/Kconfig

View file
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index b18bea0..cb212eb 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -134,8 +134,8 @@ config GPIO_BCM_KONA
config GPIO_BRCMSTB
tristate "BRCMSTB GPIO support"
- default y if ARCH_BRCMSTB
- depends on OF_GPIO && (ARCH_BRCMSTB || COMPILE_TEST)
+ default y if (ARCH_BRCMSTB || BMIPS_GENERIC)
+ depends on OF_GPIO && (ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST)
select GPIO_GENERIC
select GPIOLIB_IRQCHIP
help
@@ -496,8 +496,21 @@ menu "Port-mapped I/O GPIO drivers"
config GPIO_104_IDIO_16
tristate "ACCES 104-IDIO-16 GPIO support"
+ select GPIOLIB_IRQCHIP
+ help
+ Enables GPIO support for the ACCES 104-IDIO-16 family. The base port
+ address for the device may be set via the idio_16_base module
+ parameter. The interrupt line number for the device may be set via the
+ idio_16_irq module parameter.
+
+config GPIO_104_IDI_48
+ tristate "ACCES 104-IDI-48 GPIO support"
+ select GPIOLIB_IRQCHIP
help
- Enables GPIO support for the ACCES 104-IDIO-16 family.
+ Enables GPIO support for the ACCES 104-IDI-48 family. The base port
+ address for the device may be configured via the idi_48_base module
+ parameter. The interrupt line number for the device may be configured
+ via the idi_48_irq module parameter.
config GPIO_F7188X
tristate "F71869, F71869A, F71882FG and F71889F GPIO support"
@@ -907,7 +920,6 @@ menu "PCI GPIO expanders"
config GPIO_AMD8111
tristate "AMD 8111 GPIO driver"
- depends on PCI
help
The AMD 8111 south bridge contains 32 GPIO pins which can be used.
@@ -919,7 +931,7 @@ config GPIO_AMD8111
config GPIO_BT8XX
tristate "BT8XX GPIO abuser"
- depends on PCI && VIDEO_BT848=n
+ depends on VIDEO_BT848=n
help
The BT8xx frame grabber chip has 24 GPIO pins that can be abused
as a cheap PCI GPIO card.
@@ -935,14 +947,13 @@ config GPIO_BT8XX
config GPIO_INTEL_MID
bool "Intel Mid GPIO support"
- depends on PCI && X86
+ depends on X86
select GPIOLIB_IRQCHIP
help
Say Y here to support Intel Mid GPIO.
config GPIO_ML_IOH
tristate "OKI SEMICONDUCTOR ML7213 IOH GPIO support"
- depends on PCI
select GENERIC_IRQ_CHIP
help
ML7213 is companion chip for Intel Atom E6xx series.
@@ -952,7 +963,7 @@ config GPIO_ML_IOH
config GPIO_PCH
tristate "Intel EG20T PCH/LAPIS Semiconductor IOH(ML7223/ML7831) GPIO"
- depends on PCI && (X86_32 || COMPILE_TEST)
+ depends on X86_32 || MIPS || COMPILE_TEST
select GENERIC_IRQ_CHIP
help
This driver is for PCH(Platform controller Hub) GPIO of Intel Topcliff
@@ -968,7 +979,6 @@ config GPIO_PCH
config GPIO_RDC321X
tristate "RDC R-321x GPIO support"
- depends on PCI
select MFD_CORE
select MFD_RDC321X
help
@@ -977,7 +987,7 @@ config GPIO_RDC321X
config GPIO_SODAVILLE
bool "Intel Sodaville GPIO support"
- depends on X86 && PCI && OF
+ depends on X86 && OF
select GPIO_GENERIC
select GENERIC_IRQ_CHIP
help
@@ -1028,7 +1038,7 @@ menu "USB GPIO expanders"
config GPIO_VIPERBOARD
tristate "Viperboard GPIO a & b support"
- depends on MFD_VIPERBOARD && USB
+ depends on MFD_VIPERBOARD
help
Say yes here to access the GPIO signals of Nano River
Technologies Viperboard. There are two GPIO chips on the

drivers/gpio/Makefile

View file
diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile
index 986dbd8..548e9b5 100644
--- a/drivers/gpio/Makefile
+++ b/drivers/gpio/Makefile
@@ -13,6 +13,7 @@ obj-$(CONFIG_GPIO_ACPI) += gpiolib-acpi.o
obj-$(CONFIG_GPIO_GENERIC) += gpio-generic.o
obj-$(CONFIG_GPIO_104_IDIO_16) += gpio-104-idio-16.o
+obj-$(CONFIG_GPIO_104_IDI_48) += gpio-104-idi-48.o
obj-$(CONFIG_GPIO_74X164) += gpio-74x164.o
obj-$(CONFIG_GPIO_74XX_MMIO) += gpio-74xx-mmio.o
obj-$(CONFIG_GPIO_ADNP) += gpio-adnp.o

drivers/gpio/gpio-104-idi-48.c

View file
diff --git a/drivers/gpio/gpio-104-idi-48.c b/drivers/gpio/gpio-104-idi-48.c
new file mode 100644
index 0000000..52eed32
--- /dev/null
+++ b/drivers/gpio/gpio-104-idi-48.c
@@ -0,0 +1,343 @@
+/*
+ * GPIO driver for the ACCES 104-IDI-48 family
+ * Copyright (C) 2015 William Breathitt Gray
+ *
+ * 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.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ */
+#include <linux/bitops.h>
+#include <linux/device.h>
+#include <linux/errno.h>
+#include <linux/gpio/driver.h>
+#include <linux/io.h>
+#include <linux/ioport.h>
+#include <linux/interrupt.h>
+#include <linux/irqdesc.h>
+#include <linux/kernel.h>
+#include <linux/module.h>
+#include <linux/moduleparam.h>
+#include <linux/platform_device.h>
+#include <linux/spinlock.h>
+
+static unsigned idi_48_base;
+module_param(idi_48_base, uint, 0);
+MODULE_PARM_DESC(idi_48_base, "ACCES 104-IDI-48 base address");
+static unsigned idi_48_irq;
+module_param(idi_48_irq, uint, 0);
+MODULE_PARM_DESC(idi_48_irq, "ACCES 104-IDI-48 interrupt line number");
+
+/**
+ * struct idi_48_gpio - GPIO device private data structure
+ * @chip: instance of the gpio_chip
+ * @lock: synchronization lock to prevent I/O race conditions
+ * @ack_lock: synchronization lock to prevent IRQ handler race conditions
+ * @irq_mask: input bits affected by interrupts
+ * @base: base port address of the GPIO device
+ * @extent: extent of port address region of the GPIO device
+ * @irq: Interrupt line number
+ * @cos_enb: Change-Of-State IRQ enable boundaries mask
+ */
+struct idi_48_gpio {
+ struct gpio_chip chip;
+ spinlock_t lock;
+ spinlock_t ack_lock;
+ unsigned char irq_mask[6];
+ unsigned base;
+ unsigned extent;
+ unsigned irq;
+ unsigned char cos_enb;
+};
+
+static int idi_48_gpio_get_direction(struct gpio_chip *chip, unsigned offset)
+{
+ return 1;
+}
+
+static int idi_48_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
+{
+ return 0;
+}
+
+static int idi_48_gpio_get(struct gpio_chip *chip, unsigned offset)
+{
+ struct idi_48_gpio *const idi48gpio = gpiochip_get_data(chip);
+ unsigned i;
+ const unsigned register_offset[6] = { 0, 1, 2, 4, 5, 6 };
+ unsigned base_offset;
+ unsigned mask;
+
+ for (i = 0; i < 48; i += 8)
+ if (offset < i + 8) {
+ base_offset = register_offset[i / 8];
+ mask = BIT(offset - i);
+
+ return !!(inb(idi48gpio->base + base_offset) & mask);
+ }
+
+ /* The following line should never execute since offset < 48 */
+ return 0;
+}
+
+static void idi_48_irq_ack(struct irq_data *data)
+{
+}
+
+static void idi_48_irq_mask(struct irq_data *data)
+{
+ struct gpio_chip *chip = irq_data_get_irq_chip_data(data);
+ struct idi_48_gpio *const idi48gpio = gpiochip_get_data(chip);
+ const unsigned offset = irqd_to_hwirq(data);
+ unsigned i;
+ unsigned mask;
+ unsigned boundary;
+ unsigned long flags;
+
+ for (i = 0; i < 48; i += 8)
+ if (offset < i + 8) {
+ mask = BIT(offset - i);
+ boundary = i / 8;
+
+ idi48gpio->irq_mask[boundary] &= ~mask;
+
+ if (!idi48gpio->irq_mask[boundary]) {
+ idi48gpio->cos_enb &= ~BIT(boundary);
+
+ spin_lock_irqsave(&idi48gpio->lock, flags);
+
+ outb(idi48gpio->cos_enb, idi48gpio->base + 7);
+
+ spin_unlock_irqrestore(&idi48gpio->lock, flags);
+ }
+
+ return;
+ }
+}
+
+static void idi_48_irq_unmask(struct irq_data *data)
+{
+ struct gpio_chip *chip = irq_data_get_irq_chip_data(data);
+ struct idi_48_gpio *const idi48gpio = gpiochip_get_data(chip);
+ const unsigned offset = irqd_to_hwirq(data);
+ unsigned i;
+ unsigned mask;
+ unsigned boundary;
+ unsigned prev_irq_mask;
+ unsigned long flags;
+
+ for (i = 0; i < 48; i += 8)
+ if (offset < i + 8) {
+ mask = BIT(offset - i);
+ boundary = i / 8;
+ prev_irq_mask = idi48gpio->irq_mask[boundary];
+
+ idi48gpio->irq_mask[boundary] |= mask;
+
+ if (!prev_irq_mask) {
+ idi48gpio->cos_enb |= BIT(boundary);
+
+ spin_lock_irqsave(&idi48gpio->lock, flags);
+
+ outb(idi48gpio->cos_enb, idi48gpio->base + 7);
+
+ spin_unlock_irqrestore(&idi48gpio->lock, flags);
+ }
+
+ return;
+ }

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-104-idio-16.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-74x164.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-74xx-mmio.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-adnp.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-adp5520.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-adp5588.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-altera.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-amd8111.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-amdpt.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-arizona.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-ath79.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-bcm-kona.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-brcmstb.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-bt8xx.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-clps711x.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-crystalcove.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-cs5535.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-da9052.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-da9055.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-davinci.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-dln2.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-dwapb.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-em.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-ep93xx.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-etraxfs.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-f7188x.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-ge.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-generic.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-grgpio.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-ich.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-intel-mid.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-iop.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-it87.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-janz-ttl.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-kempld.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-ks8695.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-loongson.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-lp3943.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-lpc18xx.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-lpc32xx.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-lynxpoint.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-max7300.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-max730x.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-max732x.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-mb86s7x.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-mc33880.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-mc9s08dz60.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-mcp23s08.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-ml-ioh.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-mm-lantiq.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-moxart.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-mpc5200.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-mpc8xxx.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-msic.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-mvebu.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-mxc.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-mxs.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-octeon.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-omap.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-palmas.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-pca953x.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-pcf857x.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-pch.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-pl061.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-pxa.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-rc5t583.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-rcar.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-rdc321x.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-sa1100.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-samsung.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-sch.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-sch311x.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-sodaville.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-spear-spics.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-sta2x11.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-stmpe.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-stp-xway.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-sx150x.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-syscon.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-tb10x.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-tc3589x.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-tegra.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-timberdale.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-tps6586x.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-tps65910.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-tps65912.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-ts5500.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-twl4030.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-twl6040.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-tz1090-pdc.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-tz1090.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-ucb1400.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-vf610.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-viperboard.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-vr41xx.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-vx855.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-wm831x.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-wm8350.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-wm8994.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-xgene-sb.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-xgene.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-xilinx.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-xlp.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-xtensa.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-zevio.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-zx.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpio-zynq.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpiolib-acpi.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpiolib-of.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpiolib-sysfs.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpiolib.c

View file

This diff is incomplete. Download the complete patch.

drivers/gpio/gpiolib.h

View file

This diff is incomplete. Download the complete patch.

drivers/hid/hid-cp2112.c

View file

This diff is incomplete. Download the complete patch.

drivers/input/touchscreen/ad7879.c

View file

This diff is incomplete. Download the complete patch.

drivers/leds/leds-pca9532.c

View file

This diff is incomplete. Download the complete patch.

drivers/leds/leds-tca6507.c

View file

This diff is incomplete. Download the complete patch.

drivers/media/dvb-frontends/cxd2820r_core.c

View file

This diff is incomplete. Download the complete patch.

drivers/mfd/dm355evm_msp.c

View file

This diff is incomplete. Download the complete patch.

drivers/mfd/htc-egpio.c

View file

This diff is incomplete. Download the complete patch.

drivers/mfd/htc-i2cpld.c

View file

This diff is incomplete. Download the complete patch.

drivers/mfd/tps65010.c

View file

This diff is incomplete. Download the complete patch.

drivers/mfd/ucb1x00-core.c

View file

This diff is incomplete. Download the complete patch.

drivers/mfd/vexpress-sysreg.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/bcm/pinctrl-bcm2835.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/bcm/pinctrl-iproc-gpio.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/bcm/pinctrl-nsp-gpio.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/intel/pinctrl-baytrail.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/intel/pinctrl-cherryview.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/intel/pinctrl-intel.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/mediatek/pinctrl-mtk-common.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/meson/pinctrl-meson.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/nomadik/pinctrl-abx500.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/nomadik/pinctrl-nomadik.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/pinctrl-adi2.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/pinctrl-amd.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/pinctrl-as3722.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/pinctrl-at91-pio4.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/pinctrl-at91.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/pinctrl-coh901.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/pinctrl-digicolor.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/pinctrl-pistachio.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/pinctrl-rockchip.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/pinctrl-st.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/pinctrl-xway.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/qcom/pinctrl-msm.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/qcom/pinctrl-spmi-gpio.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/qcom/pinctrl-spmi-mpp.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/samsung/pinctrl-exynos.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/samsung/pinctrl-exynos5440.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/samsung/pinctrl-samsung.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/sh-pfc/gpio.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/sirf/pinctrl-atlas7.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/sirf/pinctrl-sirf.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/spear/pinctrl-plgpio.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/sunxi/pinctrl-sunxi.c

View file

This diff is incomplete. Download the complete patch.

drivers/pinctrl/vt8500/pinctrl-wmt.c

View file

This diff is incomplete. Download the complete patch.

drivers/platform/x86/intel_pmic_gpio.c

View file

This diff is incomplete. Download the complete patch.

drivers/tty/serial/max310x.c

View file

This diff is incomplete. Download the complete patch.

drivers/tty/serial/sc16is7xx.c

View file

This diff is incomplete. Download the complete patch.

drivers/video/fbdev/via/via-gpio.c

View file

This diff is incomplete. Download the complete patch.

include/linux/basic_mmio_gpio.h

View before deletion

This diff is incomplete. Download the complete patch.

include/linux/gpio/driver.h

View file

This diff is incomplete. Download the complete patch.

include/linux/of_gpio.h

View file

This diff is incomplete. Download the complete patch.

include/linux/platform_data/gpio-rcar.h

View before deletion

This diff is incomplete. Download the complete patch.

sound/soc/codecs/rt5677.c

View file

This diff is incomplete. Download the complete patch.

sound/soc/codecs/wm5100.c

View file

This diff is incomplete. Download the complete patch.

sound/soc/codecs/wm8903.c

View file

This diff is incomplete. Download the complete patch.

sound/soc/codecs/wm8962.c

View file

This diff is incomplete. Download the complete patch.

sound/soc/codecs/wm8996.c

View file

This diff is incomplete. Download the complete patch.

sound/soc/soc-ac97.c

View file

This diff is incomplete. Download the complete patch.