linux/drivers/pinctrl
Linus Walleij 58383c7842 gpio: change member .dev to .parent
The name .dev in a struct is normally reserved for a struct device
that is let us say a superclass to the thing described by the struct.
struct gpio_chip stands out by confusingly using a struct device *dev
to point to the parent device (such as a platform_device) that
represents the hardware. As we want to give gpio_chip:s real devices,
this is not working. We need to rename this member to parent.

This was done by two coccinelle scripts, I guess it is possible to
combine them into one, but I don't know such stuff. They look like
this:

@@
struct gpio_chip *var;
@@
-var->dev
+var->parent

and:

@@
struct gpio_chip var;
@@
-var.dev
+var.parent

and:

@@
struct bgpio_chip *var;
@@
-var->gc.dev
+var->gc.parent

Plus a few instances of bgpio that I couldn't figure out how
to teach Coccinelle to rewrite.

This patch hits all over the place, but I *strongly* prefer this
solution to any piecemal approaches that just exercise patch
mechanics all over the place. It mainly hits drivers/gpio and
drivers/pinctrl which is my own backyard anyway.

Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
Cc: Rafał Miłecki <zajec5@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Cc: Alek Du <alek.du@intel.com>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2015-11-19 09:24:35 +01:00
..
bcm gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
berlin pinctrl: berlin: fix BG2CD field widths 2015-10-16 16:42:48 +02:00
freescale This is the big bulk of pin control changes for the 2015-11-02 12:30:39 -08:00
intel gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
mediatek gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
meson gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
mvebu
nomadik gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
qcom gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
samsung gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
sh-pfc gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
sirf gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
spear gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
sunxi gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
uniphier This is the big bulk of pin control changes for the 2015-11-02 12:30:39 -08:00
vt8500 gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
Kconfig pinctrl: introduce driver for Atmel PIO4 controller 2015-09-21 11:21:33 -07:00
Makefile pinctrl: uniphier: guard uniphier directory with CONFIG_PINCTRL_UNIPHIER 2015-10-31 22:13:07 +01:00
core.c drivers/pinctrl: Add the concept of an "init" state 2015-10-27 11:24:23 +01:00
core.h
devicetree.c
devicetree.h
pinconf-generic.c pinctrl: pinconf-generic: add "input-schmitt" DT property 2015-10-02 15:09:11 -07:00
pinconf.c pinctrl: pinconf: remove needless loop 2015-10-31 22:13:07 +01:00
pinconf.h
pinctrl-adi2-bf54x.c
pinctrl-adi2-bf60x.c
pinctrl-adi2.c pinctrl: replace trivial implementations of gpio_chip request/free 2015-10-16 22:20:21 +02:00
pinctrl-adi2.h
pinctrl-amd.c gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
pinctrl-amd.h
pinctrl-as3722.c gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
pinctrl-at91-pio4.c gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
pinctrl-at91.c gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
pinctrl-at91.h
pinctrl-coh901.c gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
pinctrl-coh901.h
pinctrl-digicolor.c gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
pinctrl-falcon.c
pinctrl-lantiq.c
pinctrl-lantiq.h
pinctrl-lpc18xx.c This is the bulk of pin control changes for the v4.3 development 2015-09-04 10:22:09 -07:00
pinctrl-palmas.c
pinctrl-pistachio.c gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
pinctrl-rockchip.c gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
pinctrl-single.c genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
pinctrl-st.c gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
pinctrl-tb10x.c
pinctrl-tegra-xusb.c pinctrl: tegra-xusb: Correct lane mux options 2015-10-27 17:06:23 +01:00
pinctrl-tegra.c pinctrl: tegra: Only set the gpio range if needed 2015-08-13 16:24:33 +02:00
pinctrl-tegra.h
pinctrl-tegra20.c
pinctrl-tegra30.c
pinctrl-tegra114.c
pinctrl-tegra124.c
pinctrl-tegra210.c
pinctrl-tz1090-pdc.c pinctrl: tz1090-pdc: Remove unneded semicolons 2015-10-02 04:06:46 -07:00
pinctrl-tz1090.c pinctrl: tz1090: Remove unneded semicolons 2015-10-02 04:06:46 -07:00
pinctrl-u300.c
pinctrl-utils.c
pinctrl-utils.h
pinctrl-xway.c gpio: change member .dev to .parent 2015-11-19 09:24:35 +01:00
pinctrl-zynq.c pinctrl: zynq: fix UTF-8 errors 2015-10-31 22:12:59 +01:00
pinmux.c pinctrl: join lines that can be a single line within 80 columns 2015-09-14 09:13:43 +02:00
pinmux.h