Julia Lawall
a0a74270ef
video: fbdev: wm8505fb use permission-specific DEVICE_ATTR variants
...
Use DEVICE_ATTR_RW for read-write attributes. This simplifies the
source code, improves readbility, and reduces the chance of
inconsistencies.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/ )
// <smpl>
@rw@
declarer name DEVICE_ATTR;
identifier x,x_show,x_store;
@@
DEVICE_ATTR(x, \(0644\|S_IRUGO|S_IWUSR\), x_show, x_store);
@script:ocaml@
x << rw.x;
x_show << rw.x_show;
x_store << rw.x_store;
@@
if not (x^"_show" = x_show && x^"_store" = x_store)
then Coccilib.include_match false
@@
declarer name DEVICE_ATTR_RW;
identifier rw.x,rw.x_show,rw.x_store;
@@
- DEVICE_ATTR(x, \(0644\|S_IRUGO|S_IWUSR\), x_show, x_store);
+ DEVICE_ATTR_RW(x);
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr >
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com >
2017-01-11 17:09:51 +01:00
..
2016-09-27 11:16:35 +03:00
2016-07-26 16:19:19 -07:00
2015-12-15 15:41:22 +02:00
2016-09-27 11:08:15 +03:00
2016-09-07 11:16:05 +03:00
2016-09-27 11:16:35 +03:00
2017-01-11 17:09:50 +01:00
2016-08-30 12:00:15 +03:00
2016-01-29 13:42:58 +02:00
2016-08-11 17:54:56 +03:00
2016-09-27 11:04:05 +03:00
2015-12-15 15:41:23 +02:00
2016-09-27 11:16:35 +03:00
2016-03-03 13:38:29 +02:00
2015-11-06 17:50:42 -08:00
2016-05-13 15:14:38 +03:00
2016-12-24 11:46:01 -08:00
2016-03-09 14:57:51 +01:00
2016-08-30 11:54:23 +03:00
2016-08-11 17:54:54 +03:00
2016-11-03 12:20:14 +02:00
2016-08-11 17:54:54 +03:00
2016-08-30 11:31:22 +03:00
2016-09-27 11:16:35 +03:00
2016-09-27 11:16:35 +03:00
2016-02-26 13:28:35 +02:00
2016-03-17 21:05:32 -07:00
2016-02-26 13:28:35 +02:00
2016-10-05 18:36:18 -04:00
2015-12-15 15:41:23 +02:00
2016-02-26 13:28:35 +02:00
2016-08-30 12:06:12 +03:00
2016-08-02 19:35:05 -04:00
2015-09-30 10:33:57 +03:00
2016-02-26 13:06:11 +02:00
2016-02-26 13:06:11 +02:00
2016-07-06 17:38:19 +02:00
2017-01-04 12:58:45 +01:00
2016-05-27 15:26:11 -07:00
2016-10-18 17:11:19 +02:00
2016-03-09 14:57:51 +01:00
2015-12-09 12:57:06 +02:00
2016-03-09 14:57:51 +01:00
2015-10-08 12:19:39 +03:00
2016-09-27 11:16:35 +03:00
2016-09-27 11:16:35 +03:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2016-04-30 14:01:37 -07:00
2016-09-27 11:16:35 +03:00
2016-02-05 16:29:28 -06:00
2017-01-11 17:09:50 +01:00
2016-10-15 09:26:12 -07:00
2016-09-27 11:05:29 +03:00
2017-01-11 17:09:50 +01:00
2016-02-16 14:52:43 +02:00
2016-12-24 11:46:01 -08:00
2016-08-30 11:59:33 +03:00
2016-02-26 12:16:58 +02:00
2016-03-09 14:57:51 +01:00
2016-01-29 13:34:07 +02:00
2016-09-27 10:55:02 +03:00
2016-09-27 11:16:35 +03:00
2016-02-26 13:06:11 +02:00
2016-02-26 13:02:58 +02:00
2016-10-18 14:13:37 -07:00
2016-03-09 14:57:51 +01:00
2016-08-30 12:04:16 +03:00
2015-12-15 15:41:24 +02:00
2016-12-24 11:46:01 -08:00
2016-09-27 11:16:35 +03:00
2016-08-11 17:54:55 +03:00
2016-08-11 17:54:55 +03:00
2016-03-09 14:57:51 +01:00
2016-03-09 14:57:51 +01:00
2017-01-11 17:09:50 +01:00
2017-01-11 17:09:50 +01:00
2016-10-24 08:12:35 -02:00
2016-12-24 11:46:01 -08:00
2016-09-27 11:16:35 +03:00
2016-09-27 11:47:37 +03:00
2016-09-27 11:41:30 +03:00
2016-12-24 11:46:01 -08:00
2016-03-03 13:36:51 +02:00
2016-03-03 13:36:51 +02:00
2016-03-03 13:36:51 +02:00
2016-09-27 11:16:35 +03:00
2015-11-10 10:00:09 -08:00
2016-09-27 11:16:35 +03:00
2016-09-07 12:06:53 +03:00
2016-09-27 11:16:35 +03:00
2015-08-25 09:59:45 +02:00
2016-12-24 11:46:01 -08:00
2017-01-11 17:09:51 +01:00
2016-11-07 13:55:32 +01:00