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
..
2016-10-03 08:37:41 +02:00
2016-12-16 06:53:56 -08:00
2016-12-16 06:53:56 -08:00
2017-02-24 14:00:23 -08:00
2016-12-24 11:27:45 -08:00
2017-02-24 14:00:23 -08:00
2016-12-24 11:27:45 -08:00
2017-02-24 14:00:23 -08:00
2013-12-10 08:48:15 +01:00
2016-05-14 18:25:56 +02:00
2016-01-31 11:06:24 -08:00
2014-03-31 13:28:20 +02:00