linux-uconsole/drivers/input
Linus Walleij 8aba7c88ee UPSTREAM: 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.

Change-Id: Ib178cec5ee519164386cb60ba7f6c3f796e84f0e
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>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 58383c7842)
2018-02-28 14:55:00 +08:00
..
gameport
gsensor rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
gyroscope rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
jogball rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
joystick Input: xpad - add support for Razer Wildcat gamepad 2017-04-21 09:30:05 +02:00
keyboard rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
lightsensor rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
magnetometer rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
misc LSK 18.02 v4.4-android 2018-02-07 20:59:20 +08:00
mouse Input: trackpoint - force 3 buttons if 0 button is reported 2018-01-31 12:06:11 +01:00
remotectl rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
sensors drivers: input: sensors: update accel sensor mma7660 driver 2018-02-11 19:17:53 +08:00
serio Input: i8042 - add TUXEDO BU1406 (N24_25BU) to the nomux list 2017-12-20 10:04:53 +01:00
tablet Input: gtco - fix potential out-of-bound access 2017-11-02 09:40:49 +01:00
touchscreen UPSTREAM: gpio: change member .dev to .parent 2018-02-28 14:55:00 +08:00
ts rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
apm-power.c
evbug.c
evdev.c rk: revert to v3.10 2015-11-11 15:57:28 +08:00
ff-core.c Input: document and check on implicitly defined FF_MAX_EFFECTS 2015-10-16 15:32:16 -07:00
ff-memless.c
input-compat.c
input-compat.h
input-leds.c
input-mt.c
input-polldev.c
input.c rk: revert to v3.10 2015-11-11 15:57:28 +08:00
joydev.c Input: joydev - fix possible ERR_PTR() dereferencing 2015-10-06 16:38:40 -07:00
Kconfig drivers, input: add sensors to compile 2016-07-12 14:11:53 +08:00
keycombo.c input: add keycombo, a general key combo driver. 2016-02-16 13:50:58 -08:00
keyreset.c input: keyreset: switch to orderly_reboot 2016-10-12 17:34:22 +05:30
Makefile drivers, input: add sensors to compile 2016-07-12 14:11:53 +08:00
matrix-keymap.c
mousedev.c rk: revert to v3.10 2015-11-11 15:57:28 +08:00
sparse-keymap.c