Bhumika Goyal
8bc57e7f11
rtc: constify rtc_class_ops structures
...
Declare rtc_class_ops structures as const as they are only passed
as an argument to the function devm_rtc_device_register. This argument
is of type const struct rtc_class_ops *, so rtc_class_ops structures
having this property can be declared const.
Done using Coccinelle:
@r1 disable optional_qualifier @
identifier i;
position p;
@@
static struct rtc_class_ops i@p = {...};
@ok1@
identifier r1.i;
position p;
@@
devm_rtc_device_register(...,&i@p,...)
@bad@
position p!={r1.p,ok1.p};
identifier r1.i;
@@
i@p
@depends on !bad disable optional_qualifier@
identifier r1.i;
@@
+const
struct rtc_class_ops i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com >
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com >
2017-01-11 17:23:06 +01:00
..
2016-03-14 17:08:18 +01:00
2016-12-25 17:21:22 +01:00
2016-12-19 00:59:21 +01:00
2016-12-19 00:59:21 +01:00
2016-07-19 17:27:42 +02:00
2016-09-22 00:14:41 +02:00
2017-01-11 17:23:03 +01:00
2016-03-14 17:08:25 +01:00
2016-10-19 08:45:48 +02:00
2016-09-02 01:24:06 +02:00
2016-07-26 00:09:18 +02:00
2017-01-11 17:23:06 +01:00
2017-01-11 17:23:06 +01:00
2016-08-31 18:21:35 +02:00
2016-12-18 18:18:03 -08:00
2016-09-02 01:24:06 +02:00
2016-07-19 18:15:21 +02:00
2016-07-19 18:15:21 +02:00
2016-09-02 01:24:06 +02:00
2016-09-02 01:24:06 +02:00
2017-01-11 17:23:06 +01:00
2016-05-20 12:33:51 +02:00
2016-07-08 16:23:11 +02:00
2016-09-02 01:24:06 +02:00
2016-07-09 10:24:45 +02:00
2016-12-19 00:59:07 +01:00
2016-07-09 10:24:45 +02:00
2016-09-22 00:14:40 +02:00
2016-12-07 16:34:43 +01:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2016-07-09 10:24:45 +02:00
2016-05-20 12:33:51 +02:00
2016-06-27 10:48:28 +02:00
2016-07-09 10:24:45 +02:00
2016-06-06 17:07:33 +02:00
2016-05-20 12:33:51 +02:00
2016-09-02 01:24:06 +02:00
2016-06-04 00:23:35 +02:00
2016-07-19 18:18:06 +02:00
2017-01-11 17:23:06 +01:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2016-11-09 01:37:03 +01:00
2016-11-04 23:31:29 +01:00
2017-01-11 17:23:06 +01:00
2016-07-21 20:06:57 +02:00
2016-05-20 12:33:51 +02:00
2016-06-27 18:15:25 +02:00
2016-05-20 12:33:51 +02:00
2016-06-04 16:05:59 +02:00
2016-03-14 17:08:27 +01:00
2016-05-20 12:33:51 +02:00
2016-06-26 01:20:08 +02:00
2017-01-11 17:23:04 +01:00
2016-07-09 10:24:45 +02:00
2016-09-02 01:24:06 +02:00
2017-01-11 17:23:06 +01:00
2016-09-02 01:24:06 +02:00
2016-11-04 23:11:39 +01:00
2016-06-29 17:33:18 +10:00
2016-09-02 01:24:06 +02:00
2016-08-31 18:21:34 +02:00
2016-03-14 17:08:41 +01:00
2016-03-14 17:08:30 +01:00
2016-07-19 18:15:21 +02:00
2016-09-02 01:24:06 +02:00
2016-11-04 23:08:59 +01:00
2016-08-31 18:21:35 +02:00
2016-08-31 09:33:33 +01:00
2016-12-19 00:59:21 +01:00
2016-07-19 18:15:21 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2016-07-09 10:24:45 +02:00
2016-05-21 17:07:16 +02:00
2016-10-12 13:24:39 +02:00
2016-09-02 01:24:06 +02:00
2017-01-04 23:39:15 +01:00
2016-09-02 01:24:06 +02:00
2016-05-20 12:33:51 +02:00
2016-07-19 17:48:06 +02:00
2016-03-14 17:08:18 +01:00
2016-07-11 23:22:35 +02:00
2017-01-11 17:23:06 +01:00
2016-05-20 12:33:51 +02:00
2016-09-02 01:24:06 +02:00
2016-11-04 23:31:31 +01:00
2016-05-20 12:33:51 +02:00
2016-09-02 01:24:06 +02:00
2016-11-04 23:31:33 +01:00
2016-08-31 18:21:35 +02:00
2016-09-02 01:24:06 +02:00
2016-05-21 17:07:17 +02:00
2017-01-10 01:32:51 +01:00
2016-03-14 17:08:24 +01:00
2016-11-30 21:21:33 +01:00
2016-07-09 10:24:21 +02:00
2016-03-14 17:08:25 +01:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00