Julia Lawall
01fa235c6e
mmc: sdricoh_cs: constify mmc_host_ops structures
...
The mmc_host_ops structure is only stored in the ops field of an
mmc_host structure, which is declared as const. Thus the mmc_host_ops
structure itself can be const.
Done with the help of Coccinelle.
// <smpl>
@r disable optional_qualifier@
identifier i;
position p;
@@
static struct mmc_host_ops i@p = { ... };
@ok1@
struct mmc_host *mmc;
identifier r.i;
position p;
@@
mmc->ops = &i@p
@bad@
position p != {r.p,ok1.p};
identifier r.i;
struct mmc_host_ops e;
@@
e@i@p
@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
struct mmc_host_ops i = { ... };
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr >
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2017-08-30 14:01:44 +02:00
..
2017-08-30 14:01:23 +02:00
2017-08-30 14:01:36 +02:00
2014-10-20 16:20:56 +02:00
2017-06-20 10:30:31 +02:00
2016-02-29 11:02:59 +01:00
2017-05-22 18:01:46 +02:00
2017-05-22 18:01:46 +02:00
2017-08-30 14:01:36 +02:00
2017-04-24 21:42:10 +02:00
2013-10-30 20:26:37 -04:00
2016-01-05 18:04:57 +01:00
2017-08-30 14:01:41 +02:00
2017-06-29 17:14:26 +02:00
2015-03-23 14:13:28 +01:00
2017-02-13 13:19:59 +01:00
2017-02-13 13:19:59 +01:00
2017-02-13 13:19:59 +01:00
2012-11-28 12:28:18 -08:00
2017-06-29 17:13:59 +02:00
2017-02-13 13:20:03 +01:00
2017-02-13 13:20:03 +01:00
2017-08-30 14:01:37 +02:00
2017-06-29 17:14:26 +02:00
2017-05-22 17:20:02 +02:00
2017-08-30 14:01:36 +02:00
2017-08-30 14:01:21 +02:00
2017-06-12 08:58:16 +02:00
2017-04-24 21:41:52 +02:00
2017-02-27 18:43:47 -08:00
2014-09-09 13:58:46 +02:00
2017-04-24 21:41:52 +02:00
2017-02-13 13:20:52 +01:00
2017-08-30 14:01:41 +02:00
2017-08-30 14:01:27 +02:00
2017-04-24 21:41:52 +02:00
2009-03-24 21:30:03 +01:00
2017-08-30 14:01:28 +02:00
2017-02-13 13:20:27 +01:00
2016-03-17 14:54:40 +01:00
2017-08-30 14:01:22 +02:00
2017-02-13 13:20:23 +01:00
2017-06-20 10:30:17 +02:00
2008-01-26 15:07:53 +00:00
2017-08-30 14:01:26 +02:00
2017-08-30 14:01:21 +02:00
2017-08-30 14:01:21 +02:00
2017-08-30 14:01:21 +02:00
2017-02-13 13:19:54 +01:00
2017-08-30 14:01:27 +02:00
2017-08-30 14:01:40 +02:00
2016-07-25 10:34:46 +02:00
2016-07-29 11:29:04 +02:00
2017-08-30 14:01:39 +02:00
2016-09-26 21:31:08 +02:00
2017-06-20 10:30:48 +02:00
2017-04-24 21:42:19 +02:00
2016-07-29 11:29:04 +02:00
2016-07-29 11:29:04 +02:00
2017-06-20 10:30:34 +02:00
2017-06-20 10:30:32 +02:00
2017-05-22 18:18:04 +02:00
2017-04-24 21:41:29 +02:00
2017-08-30 14:01:32 +02:00
2017-08-30 14:01:31 +02:00
2017-04-28 14:53:13 +02:00
2016-07-29 11:29:04 +02:00
2017-08-30 14:01:39 +02:00
2017-04-24 21:41:28 +02:00
2017-04-24 21:41:38 +02:00
2015-10-26 16:00:05 +01:00
2017-06-20 10:30:38 +02:00
2016-05-02 10:33:25 +02:00
2017-04-24 21:41:26 +02:00
2016-11-29 09:01:00 +01:00
2017-04-24 21:41:20 +02:00
2017-04-24 21:41:29 +02:00
2017-04-24 21:41:29 +02:00
2017-04-24 21:41:26 +02:00
2017-04-24 21:41:26 +02:00
2017-08-30 14:01:37 +02:00
2017-08-30 14:01:38 +02:00
2017-05-19 08:58:21 +02:00
2017-08-30 14:01:39 +02:00
2017-05-19 08:58:21 +02:00
2017-08-30 14:01:35 +02:00
2017-04-24 21:42:27 +02:00
2017-08-30 14:01:44 +02:00
2017-08-30 14:01:42 +02:00
2017-08-30 14:01:43 +02:00
2014-09-24 10:13:09 +02:00
2017-08-30 14:01:26 +02:00
2017-06-20 10:30:50 +02:00
2017-08-30 14:01:25 +02:00
2017-08-30 14:01:42 +02:00
2014-11-26 14:30:58 +01:00
2017-08-30 14:01:43 +02:00
2017-03-16 15:31:27 +01:00
2017-08-30 14:01:35 +02:00
2017-08-30 14:01:43 +02:00
2017-08-30 14:01:35 +02:00
2007-07-26 01:53:31 +02:00
2017-08-30 14:01:40 +02:00