Németh Márton
c4386ad07c
USB host: make Open Firmware device id constant
...
The match_table field of the struct of_device_id is constant in <linux/of_platform.h>
so it is worth to make the initialization data also constant.
The semantic match that finds this kind of pattern is as follows:
(http://coccinelle.lip6.fr/ )
// <smpl>
@r@
disable decl_init,const_decl_init;
identifier I1, I2, x;
@@
struct I1 {
...
const struct I2 *x;
...
};
@s@
identifier r.I1, y;
identifier r.x, E;
@@
struct I1 y = {
.x = E,
};
@c@
identifier r.I2;
identifier s.E;
@@
const struct I2 E[] = ... ;
@depends on !c@
identifier r.I2;
identifier s.E;
@@
+ const
struct I2 E[] = ...;
// </smpl>
Signed-off-by: Németh Márton <nm127@freemail.hu >
Cc: Julia Lawall <julia@diku.dk >
Cc: cocci@diku.dk
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2010-03-02 14:54:18 -08:00
..
2009-12-11 11:55:26 -08:00
2010-03-02 14:53:18 -08:00
2010-03-02 14:53:18 -08:00
2009-09-23 06:46:29 -07:00
2010-03-02 14:53:15 -08:00
2007-05-23 20:14:15 -07:00
2010-01-20 15:24:34 -08:00
2010-02-16 15:11:04 -08:00
2009-07-12 15:16:39 -07:00
2009-09-23 06:46:29 -07:00
2010-03-02 14:53:05 -08:00
2010-03-02 14:53:49 -08:00
2010-03-02 14:53:17 -08:00
2009-11-30 16:43:16 -08:00
2010-03-02 14:54:18 -08:00
2009-07-12 15:16:39 -07:00
2010-01-20 15:24:34 -08:00
2010-03-02 14:53:13 -08:00
2009-09-23 06:46:20 -07:00
2010-03-02 14:54:18 -08:00
2009-11-30 16:43:16 -08:00
2009-06-15 21:44:43 -07:00
2010-03-02 14:54:18 -08:00
2009-01-27 16:15:38 -08:00
2009-01-27 16:15:38 -08:00
2009-01-27 16:15:38 -08:00
2009-12-22 14:17:55 -08:00
2010-02-16 15:11:07 -08:00
2009-12-22 14:17:56 -08:00
2009-06-15 21:44:44 -07:00
2010-03-02 14:52:55 -08:00
2010-03-02 14:52:55 -08:00
2010-03-02 14:52:55 -08:00
2009-03-24 16:20:36 -07:00
2009-03-24 16:20:30 -07:00
2010-03-02 14:53:25 -08:00
2009-12-11 11:55:20 -08:00
2010-01-20 15:24:35 -08:00
2009-09-23 06:46:29 -07:00
2010-03-02 14:54:18 -08:00
2010-03-02 14:52:55 -08:00
2010-03-02 14:52:55 -08:00
2009-12-11 11:55:15 -08:00
2009-12-15 08:53:25 -08:00
2009-06-15 21:44:43 -07:00
2009-09-23 06:46:34 -07:00
2009-11-17 16:46:33 -08:00
2008-10-17 14:41:04 -07:00
2008-08-21 10:26:38 -07:00
2007-10-12 14:54:59 -07:00
2009-10-20 09:40:47 -07:00
2009-11-17 16:46:33 -08:00
2009-12-11 11:55:14 -08:00
2008-08-21 10:26:38 -07:00
2010-03-02 14:54:18 -08:00
2008-08-21 10:26:38 -07:00
2009-06-16 14:17:32 +10:00
2009-12-15 08:53:25 -08:00
2009-11-17 16:46:33 -08:00
2009-03-24 16:20:45 -07:00
2008-08-21 10:26:38 -07:00
2008-08-21 10:26:38 -07:00
2008-08-21 10:26:38 -07:00
2008-08-21 10:26:38 -07:00
2009-01-07 09:59:52 -08:00
2009-11-17 16:46:33 -08:00
2009-09-23 06:46:32 -07:00
2009-03-24 16:20:33 -07:00
2009-10-11 15:57:57 -07:00
2010-02-05 11:53:28 +09:00
2009-07-23 13:04:10 +09:00
2009-11-28 18:03:14 +01:00
2010-03-02 14:53:26 -08:00
2008-07-25 10:53:29 -07:00
2008-08-21 10:26:38 -07:00
2009-03-24 16:20:36 -07:00
2010-03-02 14:54:12 -08:00
2009-03-24 16:20:33 -07:00
2010-01-20 15:24:34 -08:00
2009-09-23 06:46:30 -07:00
2010-03-02 14:54:01 -08:00
2009-06-15 21:44:48 -07:00
2010-03-02 14:53:19 -08:00
2010-03-02 14:53:12 -08:00
2010-03-02 14:53:36 -08:00
2010-03-02 14:53:12 -08:00
2010-03-02 14:53:12 -08:00
2010-03-02 14:54:01 -08:00