Julia Lawall
1f1d8703a0
serial/bcm63xx_uart: constify uart_ops structures
...
Check for uart_ops structures that are only stored in the ops field of a
uart_port structure. This field is declared const, so uart_ops structures
that have this property can be declared as const also.
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 uart_ops i@p = { ... };
@ok@
identifier r.i;
struct uart_port e;
position p;
@@
e.ops = &i@p;
@bad@
position p != {r.p,ok.p};
identifier r.i;
struct uart_ops e;
@@
e@i@p
@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
struct uart_ops i = { ... };
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-09-02 15:01:16 +02:00
..
2016-09-01 21:04:57 +02:00
2015-10-04 19:09:21 +01:00
2016-02-07 13:36:09 -08:00
2014-07-09 17:29:38 -07:00
2016-09-02 15:01:16 +02:00
2016-09-02 15:01:16 +02:00
2014-11-06 14:57:27 -08:00
2016-08-31 15:24:23 +02:00
2015-12-13 19:59:48 -08:00
2015-10-04 19:09:21 +01:00
2016-08-04 08:50:07 -04:00
2016-09-01 21:05:41 +02:00
2016-09-02 15:01:16 +02:00
2016-09-02 15:01:16 +02:00
2014-11-25 17:06:38 -08:00
2015-12-13 19:59:48 -08:00
2016-07-06 17:38:16 +02:00
2016-04-30 09:26:55 -07:00
2014-11-05 20:18:30 -08:00
2016-02-14 17:39:36 -08:00
2014-07-09 17:29:38 -07:00
2014-04-24 16:32:27 -07:00
2016-02-06 22:07:37 -08:00
2014-10-20 16:21:45 +02:00
2015-11-20 16:19:54 -08:00
2016-08-31 15:48:29 +02:00
2015-12-13 19:59:48 -08:00
2016-04-30 09:26:55 -07:00
2016-08-31 16:27:28 +02:00
2015-05-10 19:04:17 +02:00
2015-05-10 19:04:17 +02:00
2014-11-05 19:20:52 -08:00
2016-06-25 10:40:33 -07:00
2015-05-06 22:26:57 +02:00
2015-07-23 18:27:41 -07:00
2015-10-04 19:09:21 +01:00
2016-06-25 14:00:06 -07:00
2016-05-20 20:57:27 -07:00
2016-06-25 13:55:35 -07:00
2015-10-28 10:30:17 +09:00
2015-05-06 22:26:59 +02:00
2015-12-13 19:59:48 -08:00
2016-04-30 09:26:55 -07:00
2016-02-06 22:31:47 -08:00
2016-06-25 14:01:57 -07:00
2016-02-06 22:16:21 -08:00
2016-06-25 10:23:54 -07:00
2015-10-22 15:44:28 +02:00
2016-06-25 14:00:06 -07:00
2016-04-30 09:26:55 -07:00
2014-10-20 16:21:45 +02:00
2016-02-14 14:36:04 -08:00
2014-08-01 16:04:21 -07:00
2016-06-25 13:50:53 -07:00
2016-05-13 14:01:56 +02:00
2016-06-25 09:01:52 -07:00
2014-12-14 16:10:09 -08:00
2016-06-25 14:00:06 -07:00
2014-12-14 16:10:09 -08:00
2016-08-31 15:39:58 +02:00
2016-08-31 15:39:58 +02:00
2014-06-19 13:04:52 -07:00
2016-08-31 16:05:26 +02:00
2014-10-20 16:21:45 +02:00
2016-08-31 15:42:28 +02:00
2016-01-28 14:17:42 -08:00
2016-06-25 14:30:42 -07:00
2016-06-25 14:30:42 -07:00
2014-10-20 16:21:45 +02:00
2016-06-25 09:01:52 -07:00
2016-06-26 10:57:13 -07:00
2016-06-25 09:09:53 -07:00
2016-04-30 09:26:55 -07:00
2016-06-25 14:01:57 -07:00
2015-07-23 18:27:41 -07:00
2016-05-27 15:26:11 -07:00
2016-09-02 15:01:16 +02:00
2015-10-04 19:11:05 +01:00
2015-07-23 18:27:41 -07:00
2016-07-27 22:54:52 -07:00
2014-12-14 16:10:09 -08:00
2015-12-13 19:59:48 -08:00
2014-12-14 16:10:09 -08:00
2014-07-09 17:29:38 -07:00
2014-12-14 16:10:09 -08:00
2016-04-30 09:26:55 -07:00
2016-05-01 13:55:12 -07:00
2014-10-20 16:21:45 +02:00
2016-08-31 15:42:28 +02:00
2016-06-25 13:50:53 -07:00
2016-02-06 23:13:30 -08:00