Julia Lawall
9610514447
[media] tuners: constify dvb_tuner_ops structures
...
These structures are only used to copy into other structures, so declare
them as const.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/ )
// <smpl>
@r disable optional_qualifier@
identifier i;
position p;
@@
static struct dvb_tuner_ops i@p = { ... };
@ok1@
identifier r.i;
expression e;
position p;
@@
e = i@p
@ok2@
identifier r.i;
expression e1, e2;
position p;
@@
memcpy(e1, &i@p, e2)
@bad@
position p != {r.p,ok1.p,ok2.p};
identifier r.i;
struct dvb_tuner_ops e;
@@
e@i@p
@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
struct dvb_tuner_ops i = { ... };
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-09-19 16:23:21 -03:00
..
2015-05-20 13:49:27 -03:00
2015-08-11 13:01:32 -03:00
2015-05-20 13:48:31 -03:00
2012-08-13 23:40:28 -03:00
2013-02-11 19:38:59 -02:00
2015-04-08 15:02:07 -03:00
2013-01-06 09:08:23 -02:00
2013-10-02 06:48:14 -03:00
2015-04-08 15:02:07 -03:00
2012-08-13 23:40:28 -03:00
2015-05-14 18:06:40 -03:00
2015-04-08 15:02:07 -03:00
2015-05-18 15:58:10 -03:00
2015-08-11 13:01:32 -03:00
2015-05-18 15:58:10 -03:00
2016-07-08 17:01:23 -03:00
2014-09-21 18:24:32 -03:00
2015-08-11 12:56:40 -03:00
2016-01-25 15:15:38 -02:00
2014-11-03 18:23:43 -02:00
2015-04-07 08:12:06 -03:00
2012-08-13 23:40:28 -03:00
2015-11-19 11:19:42 -02:00
2015-04-08 15:02:07 -03:00
2012-08-13 23:40:28 -03:00
2012-09-18 12:54:44 -03:00
2015-04-08 15:02:07 -03:00
2015-10-28 10:30:17 +09:00
2016-09-19 16:23:21 -03:00
2015-04-08 15:02:07 -03:00
2012-08-13 23:40:28 -03:00
2014-09-03 17:59:56 -03:00
2015-04-08 15:02:07 -03:00
2016-09-19 16:23:21 -03:00
2015-04-08 15:02:07 -03:00
2014-12-22 17:52:20 -02:00
2014-12-22 17:52:20 -02:00
2015-04-08 15:02:07 -03:00
2012-08-13 23:40:28 -03:00
2015-04-08 15:02:07 -03:00
2014-09-23 17:03:59 -03:00
2014-09-23 17:03:59 -03:00
2014-09-03 17:59:56 -03:00
2015-04-08 15:02:07 -03:00
2016-09-19 16:23:21 -03:00
2015-04-08 15:02:07 -03:00
2016-05-06 23:51:47 -03:00
2014-09-23 17:04:00 -03:00
2012-08-13 23:40:28 -03:00
2015-04-30 14:57:35 -03:00
2015-04-08 15:02:07 -03:00
2016-06-24 12:00:02 -03:00
2015-04-08 15:02:07 -03:00
2016-05-06 10:07:45 -03:00
2016-07-08 16:54:54 -03:00
2016-02-16 08:50:36 -02:00
2016-09-19 16:23:21 -03:00
2015-04-08 15:02:07 -03:00
2014-12-22 17:52:20 -02:00
2015-04-08 15:02:07 -03:00
2014-12-22 17:52:20 -02:00
2015-04-08 15:02:07 -03:00
2015-08-11 13:01:32 -03:00
2014-09-21 20:04:55 -03:00
2012-09-15 09:23:16 -03:00
2013-11-08 09:45:41 -02:00
2015-04-08 15:02:07 -03:00
2014-12-04 13:55:05 -02:00
2016-09-05 15:26:28 -03:00
2014-12-22 17:52:20 -02:00
2016-09-05 15:26:28 -03:00
2015-04-08 15:02:07 -03:00
2016-09-19 16:23:21 -03:00
2015-04-08 15:02:07 -03:00
2016-09-19 16:23:21 -03:00
2015-04-08 15:02:07 -03:00
2015-05-18 15:55:14 -03:00
2015-08-11 13:01:32 -03:00
2015-05-18 15:54:02 -03:00
2015-06-23 10:01:45 -03:00
2016-09-19 16:23:21 -03:00
2015-04-08 15:02:07 -03:00
2013-03-24 12:11:35 -03:00
2013-11-29 14:43:50 -02:00
2016-02-04 09:30:31 -02:00
2015-04-08 15:02:07 -03:00
2016-02-23 07:14:02 -03:00
2015-04-08 15:02:07 -03:00
2015-04-08 14:49:59 -03:00
2015-04-08 15:02:07 -03:00