58383c7842
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> |
||
---|---|---|
.. | ||
88pm860x-ts.c | ||
ad7877.c | ||
ad7879-i2c.c | ||
ad7879-spi.c | ||
ad7879.c | ||
ad7879.h | ||
ads7846.c | ||
ar1021_i2c.c | ||
atmel_mxt_ts.c | ||
atmel-wm97xx.c | ||
auo-pixcir-ts.c | ||
bcm_iproc_tsc.c | ||
bu21013_ts.c | ||
chipone_icn8318.c | ||
colibri-vf50-ts.c | ||
cy8ctmg110_ts.c | ||
cyttsp4_core.c | ||
cyttsp4_core.h | ||
cyttsp4_i2c.c | ||
cyttsp4_spi.c | ||
cyttsp_core.c | ||
cyttsp_core.h | ||
cyttsp_i2c_common.c | ||
cyttsp_i2c.c | ||
cyttsp_spi.c | ||
da9034-ts.c | ||
da9052_tsi.c | ||
dynapro.c | ||
edt-ft5x06.c | ||
eeti_ts.c | ||
egalax_ts.c | ||
elants_i2c.c | ||
elo.c | ||
ft6236.c | ||
fujitsu_ts.c | ||
goodix.c | ||
gunze.c | ||
hampshire.c | ||
hp680_ts_input.c | ||
htcpen.c | ||
ili210x.c | ||
imx6ul_tsc.c | ||
inexio.c | ||
intel-mid-touch.c | ||
ipaq-micro-ts.c | ||
jornada720_ts.c | ||
Kconfig | ||
lpc32xx_ts.c | ||
mainstone-wm97xx.c | ||
Makefile | ||
max11801_ts.c | ||
mc13783_ts.c | ||
mcs5000_ts.c | ||
migor_ts.c | ||
mk712.c | ||
mms114.c | ||
mtouch.c | ||
of_touchscreen.c | ||
pcap_ts.c | ||
penmount.c | ||
pixcir_i2c_ts.c | ||
rohm_bu21023.c | ||
s3c2410_ts.c | ||
st1232.c | ||
stmpe-ts.c | ||
sun4i-ts.c | ||
sur40.c | ||
sx8654.c | ||
ti_am335x_tsc.c | ||
touchit213.c | ||
touchright.c | ||
touchwin.c | ||
tps6507x-ts.c | ||
tsc40.c | ||
tsc200x-core.c | ||
tsc200x-core.h | ||
tsc2004.c | ||
tsc2005.c | ||
tsc2007.c | ||
ucb1400_ts.c | ||
usbtouchscreen.c | ||
w90p910_ts.c | ||
wacom_i2c.c | ||
wacom_w8001.c | ||
wdt87xx_i2c.c | ||
wm97xx-core.c | ||
wm831x-ts.c | ||
wm9705.c | ||
wm9712.c | ||
wm9713.c | ||
zforce_ts.c | ||
zylonite-wm97xx.c |