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
..
2015-10-26 14:48:56 +00:00
2015-08-11 15:08:48 +01:00
2015-08-11 15:08:48 +01:00
2015-08-11 15:09:01 +01:00
2014-09-26 08:15:45 +01:00
2015-08-11 15:08:48 +01:00
2015-08-11 15:08:48 +01:00
2014-10-20 16:20:53 +02:00
2015-08-11 15:09:01 +01:00
2015-06-22 12:25:27 +01:00
2015-06-22 12:25:28 +01:00
2015-03-13 23:15:54 +01:00
2014-06-03 08:11:51 +01:00
2015-08-11 15:08:48 +01:00
2015-10-30 18:56:58 +00:00
2015-10-30 17:20:30 +00:00
2015-10-26 14:49:05 +00:00
2015-11-06 10:23:50 -08:00
2015-08-11 15:08:42 +01:00
2015-08-11 15:08:48 +01:00
2015-08-11 15:08:48 +01:00
2015-09-16 15:47:51 +02:00
2015-10-30 17:19:49 +00:00
2015-10-26 14:48:59 +00:00
2015-10-30 17:20:39 +00:00
2015-10-26 14:49:09 +00:00
2015-10-26 14:48:55 +00:00
2015-10-28 10:30:17 +09:00
2015-06-22 12:23:02 +01:00
2014-03-19 08:58:07 +00:00
2015-10-30 17:19:45 +00:00
2015-10-30 17:19:49 +00:00
2015-10-30 17:19:46 +00:00
2015-06-22 12:25:01 +01:00
2015-11-06 10:23:50 -08:00
2015-06-22 12:25:01 +01:00
2015-08-11 15:08:48 +01:00
2015-10-30 17:19:51 +00:00
2015-06-22 12:25:20 +01:00
2015-08-11 15:08:48 +01:00
2015-08-11 15:08:51 +01:00
2015-10-13 11:28:36 +01:00
2015-01-22 15:56:24 +00:00
2015-08-11 15:09:01 +01:00
2013-09-26 11:04:16 +02:00
2015-03-26 14:20:18 +00:00
2015-11-19 09:24:35 +01:00
2015-11-04 11:02:12 +00:00
2015-10-26 14:49:00 +00:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2014-01-06 09:13:29 +00:00
2014-10-20 16:20:53 +02:00
2015-10-26 15:25:55 +01:00
2015-10-30 17:19:47 +00:00
2015-09-04 15:49:32 -07:00
2015-06-22 12:25:01 +01:00
2015-07-21 09:22:08 +02:00
2015-10-30 18:57:33 +00:00
2015-10-30 18:57:34 +00:00
2015-11-06 14:22:15 -08:00
2015-10-01 16:31:33 +01:00
2015-08-11 15:09:00 +01:00
2015-05-06 08:03:20 +02:00
2015-09-16 15:47:51 +02:00
2015-10-30 17:20:12 +00:00
2015-10-30 17:19:43 +00:00
2015-10-30 17:19:52 +00:00
2012-05-20 17:27:02 +02:00
2015-08-11 15:08:48 +01:00
2015-08-11 15:09:01 +01:00
2015-08-11 15:08:48 +01:00
2015-10-30 17:18:50 +00:00
2015-01-22 15:55:56 +00:00
2015-10-30 17:19:49 +00:00
2015-08-11 15:08:48 +01:00
2015-08-11 15:09:01 +01:00
2015-08-11 15:08:48 +01:00
2015-08-11 15:09:08 +01:00
2015-10-26 14:49:01 +00:00
2015-08-11 15:09:08 +01:00
2015-08-11 15:08:48 +01:00
2015-08-11 15:08:48 +01:00
2015-08-11 15:08:48 +01:00
2015-09-04 11:35:03 -07:00
2015-10-01 16:31:42 +01:00
2015-06-22 12:25:24 +01:00
2015-08-11 15:08:48 +01:00
2015-10-28 10:30:17 +09:00
2014-07-09 14:58:10 +01:00
2014-07-22 13:17:02 +01:00
2014-10-20 16:20:53 +02:00
2015-03-30 10:06:55 +01:00
2014-09-24 13:30:16 +01:00
2015-10-26 15:25:53 +01:00
2015-08-11 15:09:11 +01:00
2015-01-22 16:03:53 +00:00
2014-10-20 16:20:53 +02:00
2013-04-09 09:46:23 +02:00
2015-08-11 15:08:48 +01:00
2014-03-19 08:58:07 +00:00
2015-01-22 15:56:21 +00:00
2012-03-06 18:46:51 +01:00
2015-10-30 17:19:42 +00:00
2015-09-16 15:47:51 +02:00
2015-10-30 17:19:40 +00:00
2015-03-30 10:07:08 +01:00
2015-08-11 15:09:01 +01:00
2015-08-11 15:08:48 +01:00
2014-06-03 08:11:17 +01:00
2015-08-11 15:08:48 +01:00
2015-03-26 14:20:18 +00:00
2014-09-26 08:15:51 +01:00
2015-10-30 18:57:35 +00:00
2015-03-03 16:41:21 +00:00
2015-10-30 17:19:44 +00:00
2015-10-30 17:19:51 +00:00
2015-10-30 17:19:44 +00:00
2015-10-30 17:19:44 +00:00
2015-11-06 10:47:12 -08:00
2015-10-30 17:19:51 +00:00
2015-03-12 09:27:41 +00:00
2015-10-30 18:57:38 +00:00
2015-04-09 10:26:54 +01:00
2014-07-25 15:31:44 +01:00
2015-08-11 15:08:48 +01:00
2013-04-19 18:37:59 +02:00
2015-03-12 09:08:12 +00:00
2015-10-26 14:49:02 +00:00
2015-08-11 15:08:48 +01:00
2014-10-20 16:20:53 +02:00
2014-10-20 16:20:53 +02:00
2015-09-04 11:35:03 -07:00
2015-10-28 10:30:17 +09:00
2015-10-26 14:48:57 +00:00
2014-12-30 16:59:59 -08:00
2015-08-11 15:09:09 +01:00
2015-01-22 15:55:49 +00:00
2014-12-14 16:10:09 -08:00
2015-09-16 15:47:51 +02:00
2015-08-11 15:09:01 +01:00
2014-11-25 16:18:58 +00:00
2015-09-16 15:47:51 +02:00
2015-03-03 16:41:15 +00:00
2014-03-19 08:58:34 +00:00
2010-12-29 08:16:46 -02:00
2011-10-31 19:32:05 -04:00
2015-10-30 17:19:40 +00:00
2015-08-11 15:08:48 +01:00
2015-08-11 15:09:01 +01:00
2015-11-19 09:24:35 +01:00
2015-08-11 15:08:48 +01:00
2015-10-26 14:49:08 +00:00
2015-08-11 15:09:10 +01:00
2015-08-11 15:08:48 +01:00
2014-10-20 16:20:53 +02:00
2014-03-19 08:58:07 +00:00
2015-08-11 15:08:48 +01:00
2015-08-11 15:09:01 +01:00
2015-10-28 10:30:17 +09:00
2015-08-11 15:08:48 +01:00
2014-10-20 16:20:53 +02:00
2015-08-11 15:09:01 +01:00
2015-06-22 12:25:04 +01:00
2015-08-11 15:09:06 +01:00
2015-10-26 14:48:56 +00:00
2015-08-05 05:10:06 +02:00
2012-03-22 13:04:33 +01:00
2012-02-18 23:15:44 +00:00
2015-11-19 09:24:35 +01:00
2012-02-18 23:15:43 +00:00
2013-07-31 13:01:29 +01:00
2015-03-03 16:41:14 +00:00
2014-11-25 16:18:42 +00:00
2014-01-21 08:27:45 +00:00
2013-08-20 08:51:58 +01:00
2015-06-22 12:25:25 +01:00
2015-10-26 14:49:04 +00:00
2015-08-11 15:08:48 +01:00
2015-08-11 15:09:01 +01:00
2012-07-19 10:38:31 -04:00
2015-10-28 10:30:17 +09:00
2015-09-04 11:46:02 -07:00
2015-10-26 14:49:06 +00:00
2015-06-22 12:25:26 +01:00
2011-09-06 16:37:58 +02:00
2015-08-11 15:08:48 +01:00
2015-08-11 15:09:01 +01:00
2012-07-09 00:16:10 +02:00
2015-08-11 15:08:48 +01:00
2015-09-04 11:46:02 -07:00
2015-08-11 15:09:13 +01:00
2015-08-11 15:08:47 +01:00
2011-12-13 00:11:13 +08:00
2015-09-04 11:46:02 -07:00
2015-10-26 14:49:07 +00:00