Bhumika Goyal
6c368932f0
watchdog: constify watchdog_info structures
...
Declare watchdog_info structures as const as they are only stored in the
info field of watchdog_device structures. This field is of type const
struct watchdog_info *, so watchdog_info structures having this property
can be declared const too.
Done using Coccinelle:
@r1 disable optional_qualifier@
identifier i;
position p;
@@
static struct watchdog_info i@p={...};
@ok@
identifier r1.i;
position p;
struct watchdog_device obj;
@@
obj.info=&i@p;
@bad@
position p!={r1.p,ok.p};
identifier r1.i;
@@
i@p
@depends on !bad disable optional_qualifier@
identifier r1.i;
@@
+const
struct watchdog_info i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2017-02-24 14:00:23 -08:00
..
2014-10-20 16:21:56 +02:00
2014-10-20 16:21:56 +02:00
2014-01-28 19:07:07 +01:00
2014-09-26 00:00:32 -07:00
2014-10-20 16:21:56 +02:00
2016-09-23 22:35:45 +02:00
2016-07-17 20:59:10 +02:00
2014-10-20 16:21:56 +02:00
2015-09-11 15:12:59 -07:00
2015-09-09 21:38:52 +02:00
2015-09-09 21:38:29 +02:00
2016-10-05 18:36:18 -04:00
2016-03-16 21:09:08 +01:00
2016-03-01 15:36:35 +01:00
2014-10-20 16:21:56 +02:00
2016-12-16 06:53:55 -08:00
2017-02-24 14:00:23 -08:00
2017-02-24 14:00:23 -08:00
2014-10-20 16:21:56 +02:00
2017-02-24 14:00:23 -08:00
2017-02-24 14:00:23 -08:00
2015-09-09 21:39:22 +02:00
2014-03-31 13:22:45 +02:00
2016-12-16 06:53:55 -08:00
2017-02-24 14:00:23 -08:00
2017-02-24 14:00:23 -08:00
2016-12-16 06:53:55 -08:00
2016-07-17 21:02:42 +02:00
2016-12-16 06:53:53 -08:00
2015-12-29 20:36:02 +01:00
2017-02-24 14:00:23 -08:00
2016-09-23 08:40:55 +02:00
2016-05-02 09:32:04 -07:00
2015-09-09 21:39:22 +02:00
2013-11-17 19:38:13 +01:00
2016-07-17 21:00:55 +02:00
2015-09-28 10:56:01 +02:00
2014-10-20 16:21:56 +02:00
2016-07-27 10:47:43 +02:00
2016-10-03 08:37:41 +02:00
2014-03-31 13:22:45 +02:00
2014-10-20 16:21:56 +02:00
2014-03-31 13:31:06 +02:00
2015-09-09 21:39:22 +02:00
2017-02-24 14:00:23 -08:00
2016-10-08 10:27:30 +02:00
2014-03-31 13:26:31 +02:00
2014-03-31 13:26:56 +02:00
2012-03-27 19:59:26 +02:00
2016-12-16 06:53:54 -08:00
2013-11-17 19:38:13 +01:00
2016-12-16 06:53:56 -08:00
2013-11-17 19:38:13 +01:00
2012-05-09 17:20:09 +02:00
2012-05-09 17:20:09 +02:00
2016-09-24 08:49:51 +02:00
2013-11-17 19:38:13 +01:00
2016-12-16 06:53:54 -08:00
2016-12-16 06:53:56 -08:00
2017-02-24 14:00:23 -08:00
2015-08-05 10:35:49 -07:00
2017-02-24 14:00:23 -08:00
2016-12-16 06:53:55 -08:00
2017-02-24 14:00:23 -08:00
2013-11-17 19:38:13 +01:00
2013-11-17 19:38:13 +01:00
2016-12-16 06:53:55 -08:00
2016-01-31 16:51:56 +01:00
2016-12-16 06:53:53 -08:00
2016-12-24 11:27:45 -08:00
2015-12-28 23:04:06 +01:00
2015-09-09 21:39:22 +02:00
2016-12-16 06:53:53 -08:00
2016-03-01 15:36:35 +01:00
2013-11-17 19:38:13 +01:00
2016-03-01 15:36:35 +01:00
2016-12-16 06:53:55 -08:00
2017-02-24 14:00:23 -08:00
2016-03-01 15:36:35 +01:00
2014-03-31 13:22:45 +02:00
2014-10-20 16:21:56 +02:00
2016-03-01 16:25:39 +01:00
2014-10-20 16:21:56 +02:00
2016-07-17 21:04:13 +02:00
2011-01-12 13:51:23 +00:00
2016-12-24 11:27:45 -08:00
2010-08-05 13:26:22 +01:00
2016-09-23 22:04:09 +02:00
2015-12-27 21:09:40 +01:00
2015-06-22 15:54:35 +02:00
2015-09-09 21:39:22 +02:00
2014-03-31 13:31:06 +02:00
2014-01-28 19:07:07 +01:00
2016-09-23 08:43:06 +02:00
2016-07-17 20:59:23 +02:00
2016-07-25 12:02:32 +02:00
2016-07-25 12:02:43 +02:00
2017-02-24 14:00:23 -08:00
2013-11-17 19:38:13 +01:00
2016-03-16 21:09:42 +01:00
2016-10-08 10:27:13 +02:00
2016-10-08 10:27:17 +02:00
2016-12-16 06:53:54 -08:00
2016-03-01 15:29:42 +01:00
2014-10-20 16:21:56 +02:00
2016-05-14 18:15:40 +02:00
2015-09-09 21:39:22 +02:00
2014-10-20 16:21:56 +02:00
2017-02-24 14:00:23 -08:00
2017-02-24 14:00:23 -08:00
2016-03-16 21:08:09 +01:00
2017-02-24 14:00:23 -08:00
2015-09-09 21:38:29 +02:00
2013-11-17 19:38:13 +01:00
2013-11-17 19:38:13 +01:00
2013-11-17 19:38:13 +01:00
2013-11-17 19:38:13 +01:00
2013-11-17 19:38:13 +01:00
2013-11-17 19:38:13 +01:00
2017-02-24 14:00:23 -08:00
2014-03-31 13:27:34 +02:00
2013-12-10 08:48:15 +01:00
2014-10-20 16:21:56 +02:00
2013-11-17 19:38:13 +01:00
2016-05-14 18:25:56 +02:00
2016-07-17 21:00:44 +02:00
2013-11-17 19:38:13 +01:00
2016-10-08 10:27:27 +02:00
2016-01-31 16:52:08 +01:00
2016-05-14 16:16:04 +02:00
2013-03-22 23:21:55 +01:00
2016-09-24 08:59:49 +02:00
2016-01-11 21:51:28 +01:00
2016-01-31 11:06:24 -08:00
2016-03-01 15:36:35 +01:00
2016-07-18 12:10:21 +02:00
2016-09-24 08:50:03 +02:00
2015-08-05 10:35:49 -07:00
2015-12-28 22:29:35 +01:00
2015-09-09 21:39:22 +02:00
2016-09-23 22:36:32 +02:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2017-02-24 14:00:23 -08:00
2013-11-17 19:38:13 +01:00
2015-11-23 08:59:30 +01:00
2013-11-17 19:38:13 +01:00
2016-09-23 08:37:14 +02:00
2015-12-29 20:36:01 +01:00
2016-10-08 10:27:24 +02:00
2016-10-08 10:27:24 +02:00
2016-10-08 10:27:24 +02:00
2009-03-25 09:07:04 +00:00
2016-10-21 01:28:33 +02:00
2013-11-17 19:38:13 +01:00
2014-03-31 13:28:20 +02:00
2013-11-17 19:38:13 +01:00
2014-03-31 13:22:45 +02:00
2013-11-17 19:38:13 +01:00
2015-09-09 21:39:22 +02:00
2015-09-09 21:39:22 +02:00
2014-10-20 16:21:56 +02:00
2016-09-23 22:34:24 +02:00