Julia Lawall 2463941fef mmc: davinci: 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:41 +02:00
..
2017-08-13 12:44:18 -07:00
2017-08-25 17:40:03 -07:00
2017-07-24 17:38:21 +02:00
2017-07-04 14:28:22 -07:00
2017-07-17 15:00:47 +02:00
2017-07-03 20:55:59 -07:00
2017-08-14 09:34:10 +02:00
2017-07-06 11:32:40 -07:00
2017-08-24 14:01:18 -07:00
2017-07-01 14:30:39 -07:00
2017-08-17 10:23:45 +02:00
2017-08-26 12:46:14 -07:00
2017-08-01 15:22:55 -07:00
2017-07-13 11:49:52 -07:00
2017-07-05 17:09:27 -07:00
2017-07-04 14:47:47 -07:00
2017-07-06 15:38:31 -07:00
2017-08-21 11:08:03 +02:00
2017-08-23 11:34:40 -07:00
2017-08-13 12:41:58 -07:00
2017-08-24 13:23:03 -07:00
2017-08-13 12:27:42 -07:00
2017-07-03 20:27:48 -07:00
2017-08-24 14:22:27 -07:00