Julia Lawall
f802d6c020
ASoC: constify snd_soc_codec_driver structures
...
Check for snd_soc_codec_driver structures that are only passed to
snd_soc_register_codec or memcpy (2nd arg), for which the corresponding
parameters are declared const. Declare as const snd_soc_codec_driver
structures that have these properties.
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 snd_soc_codec_driver i@p = { ... };
@ok@
identifier r.i;
expression e1,e2,e3;
position p;
@@
(
snd_soc_register_codec(e1,&i@p,e2,e3)
|
memcpy(e1,&i@p,e2)
)
@bad@
position p != {r.p,ok.p};
identifier r.i;
@@
i@p
@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
struct snd_soc_codec_driver i = { ... };
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-09-01 20:55:31 +01:00
..
2016-08-08 11:57:57 +01:00
2013-09-20 10:40:51 +01:00
2016-08-08 11:57:57 +01:00
2013-05-21 11:39:34 -05:00
2016-08-08 11:57:57 +01:00
2015-10-05 17:42:49 +01:00
2015-11-06 11:04:07 -08:00
2016-08-08 11:57:57 +01:00
2015-10-05 17:42:49 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-06-15 14:42:40 +01:00
2016-06-15 14:42:40 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-06-15 14:42:40 +01:00
2016-06-15 14:42:40 +01:00
2016-08-08 11:57:57 +01:00
2014-05-27 20:54:50 +01:00
2016-06-15 14:42:40 +01:00
2016-06-15 14:42:40 +01:00
2016-08-08 11:57:57 +01:00
2014-05-27 20:54:51 +01:00
2015-07-15 12:50:43 +01:00
2015-10-28 10:30:17 +09:00
2016-08-08 11:57:57 +01:00
2014-02-19 13:36:15 +09:00
2016-08-08 11:57:57 +01:00
2016-06-09 18:41:41 +01:00
2016-06-09 18:41:41 +01:00
2016-08-08 11:57:57 +01:00
2014-02-18 10:30:25 +09:00
2015-10-28 10:30:17 +09:00
2015-07-15 12:50:43 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2014-02-11 20:40:10 +00:00
2016-08-08 11:57:57 +01:00
2015-08-30 15:57:34 +01:00
2016-08-08 11:57:57 +01:00
2016-07-24 22:07:27 +01:00
2016-07-24 22:07:27 +01:00
2016-08-08 11:57:57 +01:00
2015-04-27 21:34:45 +01:00
2016-08-08 11:57:57 +01:00
2015-07-23 16:01:56 +01:00
2016-08-08 11:57:57 +01:00
2016-06-27 17:39:06 +01:00
2015-07-15 12:50:43 +01:00
2016-08-08 11:57:57 +01:00
2014-11-12 15:56:09 +00:00
2016-08-08 11:57:57 +01:00
2014-04-07 10:48:50 +01:00
2016-08-08 11:57:57 +01:00
2014-06-01 11:49:25 +01:00
2016-08-08 11:57:57 +01:00
2013-10-18 00:37:29 +01:00
2015-07-15 12:50:43 +01:00
2016-08-08 11:57:57 +01:00
2015-07-07 13:35:13 +01:00
2016-08-08 11:57:57 +01:00
2015-11-16 09:50:49 +00:00
2016-08-08 11:57:57 +01:00
2016-06-23 11:35:52 +01:00
2016-08-08 11:57:57 +01:00
2014-06-24 16:16:13 +01:00
2016-08-08 11:57:57 +01:00
2015-07-15 12:50:43 +01:00
2015-10-28 10:30:17 +09:00
2016-08-08 11:57:57 +01:00
2014-10-20 12:20:02 +01:00
2016-08-08 11:57:57 +01:00
2015-07-20 18:18:46 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2014-08-22 13:34:39 -05:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-05-10 19:24:19 +01:00
2016-08-08 11:57:57 +01:00
2016-04-22 16:26:19 +01:00
2016-06-26 12:39:42 +01:00
2015-10-02 18:11:27 +01:00
2016-08-08 11:57:57 +01:00
2016-04-19 17:39:52 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2014-10-28 10:48:03 +00:00
2014-08-16 17:17:13 -05:00
2016-08-08 11:57:57 +01:00
2016-05-10 18:56:01 +01:00
2016-08-08 11:57:57 +01:00
2016-07-24 22:07:22 +01:00
2016-02-15 20:54:03 +00:00
2016-08-08 11:57:57 +01:00
2015-08-28 17:17:29 +01:00
2016-08-08 11:57:57 +01:00
2015-11-23 14:36:53 +00:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-07-24 22:07:48 +01:00
2015-07-15 12:50:43 +01:00
2016-08-08 11:57:57 +01:00
2016-07-24 22:07:41 +01:00
2015-08-30 15:57:34 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-05-30 16:15:55 +01:00
2016-08-08 11:57:57 +01:00
2016-06-22 15:52:03 +01:00
2015-08-30 15:57:34 +01:00
2016-06-22 16:12:26 +01:00
2016-08-08 11:57:57 +01:00
2015-07-07 13:14:15 +01:00
2015-08-30 15:57:34 +01:00
2015-08-10 12:57:35 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-05-11 16:39:56 +01:00
2016-04-28 18:16:04 +01:00
2016-06-29 20:21:50 +01:00
2016-06-29 20:21:50 +01:00
2016-08-08 11:57:57 +01:00
2015-03-11 19:16:07 +00:00
2016-08-08 11:57:57 +01:00
2016-01-27 20:23:20 +00:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-06-13 11:39:02 +01:00
2016-01-29 00:36:21 +01:00
2016-01-29 00:36:16 +01:00
2016-08-08 11:57:57 +01:00
2016-01-29 00:36:26 +01:00
2015-07-15 12:50:43 +01:00
2015-10-28 10:30:17 +09:00
2016-08-08 11:57:57 +01:00
2015-01-28 19:28:53 +00:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2015-12-12 22:39:59 +00:00
2015-12-12 22:39:59 +00:00
2016-08-08 11:57:57 +01:00
2015-12-12 22:39:59 +00:00
2016-05-30 16:19:23 +01:00
2015-11-16 13:17:01 +00:00
2015-08-05 10:42:35 +01:00
2015-09-24 10:30:47 -07:00
2015-09-24 10:30:47 -07:00
2016-08-08 11:57:57 +01:00
2015-02-05 18:18:02 +00:00
2016-08-08 11:57:57 +01:00
2016-04-26 11:11:08 +01:00
2016-07-14 10:56:54 +01:00
2016-06-07 16:22:31 +01:00
2016-08-08 11:57:57 +01:00
2016-07-24 22:07:41 +01:00
2016-08-08 11:57:57 +01:00
2015-12-19 12:02:18 +00:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-03-18 10:00:25 +00:00
2016-08-08 11:57:57 +01:00
2016-07-07 14:08:48 +02:00
2016-08-08 11:57:57 +01:00
2014-06-01 20:04:30 +01:00
2016-08-08 11:57:57 +01:00
2016-01-13 12:40:56 +00:00
2014-07-02 20:49:25 +01:00
2016-08-08 11:57:57 +01:00
2015-11-17 11:45:00 +00:00
2015-10-28 10:30:17 +09:00
2015-08-25 17:34:30 +01:00
2016-08-08 11:57:57 +01:00
2015-07-07 13:34:03 +01:00
2016-08-08 11:57:57 +01:00
2016-06-15 14:09:26 +01:00
2016-08-08 11:57:57 +01:00
2016-02-10 18:55:01 +00:00
2014-11-20 09:55:34 +00:00
2014-11-27 10:59:33 +00:00
2014-11-20 09:55:34 +00:00
2015-07-15 12:32:56 +01:00
2014-04-14 17:28:17 +01:00
2016-08-08 11:57:57 +01:00
2015-03-04 17:09:51 +00:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2013-05-25 10:33:30 -04:00
2015-07-15 12:50:43 +01:00
2015-10-28 10:30:17 +09:00
2016-08-08 11:57:57 +01:00
2014-02-18 10:07:33 +09:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2015-01-27 17:10:00 +00:00
2016-08-08 11:57:57 +01:00
2014-05-05 12:52:59 -07:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-06-01 16:22:10 +01:00
2016-08-08 11:57:57 +01:00
2015-07-23 16:46:31 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-04-27 16:48:53 +01:00
2016-08-08 11:57:57 +01:00
2014-11-09 09:46:43 +00:00
2016-08-08 11:57:57 +01:00
2014-11-10 12:04:02 +00:00
2015-03-09 18:24:44 +00:00
2015-10-28 10:30:17 +09:00
2016-08-08 11:57:57 +01:00
2014-03-07 10:55:33 +08:00
2016-08-08 11:57:57 +01:00
2013-09-25 13:30:59 +01:00
2016-08-08 11:57:57 +01:00
2016-05-30 16:24:36 +01:00
2016-04-19 10:54:43 +01:00
2016-04-19 10:54:47 +01:00
2016-08-08 11:57:57 +01:00
2016-04-19 10:54:43 +01:00
2016-08-08 11:57:57 +01:00
2016-06-26 12:28:13 +01:00
2016-06-26 12:28:13 +01:00
2015-07-15 12:50:43 +01:00
2014-11-14 10:46:41 +00:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2015-07-13 11:51:35 +01:00
2016-08-08 11:57:57 +01:00
2016-08-08 11:57:57 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2013-03-29 13:08:03 +00:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2013-03-04 11:01:00 +08:00
2016-09-01 20:55:31 +01:00
2013-03-04 11:01:00 +08:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2015-05-13 15:51:36 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2015-07-15 12:50:43 +01:00
2015-10-28 10:30:17 +09:00
2016-08-08 11:57:57 +01:00
2015-04-08 19:25:40 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2015-05-13 12:49:39 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-03-01 12:10:42 +09:00
2016-09-01 20:55:31 +01:00
2015-08-11 17:11:52 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-03-29 10:05:24 -07:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-05-30 16:25:36 +01:00
2016-08-08 11:57:57 +01:00
2016-09-01 20:55:31 +01:00
2013-11-25 15:49:49 +00:00
2016-09-01 20:55:31 +01:00
2013-11-24 13:53:26 +00:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2014-11-10 19:08:22 +00:00
2016-08-08 11:57:57 +01:00
2013-06-19 19:47:42 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2013-08-13 11:31:56 +01:00
2016-09-01 20:55:31 +01:00
2015-10-02 17:51:34 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2016-09-01 20:55:31 +01:00
2015-07-23 17:33:43 +01:00
2016-07-24 22:07:27 +01:00
2016-05-30 16:14:59 +01:00
2015-08-05 13:24:42 +01:00
2015-04-27 15:38:26 +01:00