Márton Németh
5e89a3484d
leds: make PCI device id constant
...
The id_table field of the struct pci_driver is constant in <linux/pci.h>
so it is worth to make pci_device_id 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: Márton Németh <nm127@freemail.hu >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-03-16 19:49:21 +00:00
..
Merge branches 'battery-2.6.34', 'bugzilla-10805', 'bugzilla-14668', 'bugzilla-531916-power-state', 'ht-warn-2.6.34', 'pnp', 'processor-rename', 'sony-2.6.34', 'suse-bugzilla-531547', 'tz-check', 'video' and 'misc-2.6.34' into release
2010-03-14 21:30:17 -04:00
2010-03-08 16:55:37 +01:00
2010-03-07 17:04:50 -08:00
2010-03-07 17:04:52 -08:00
2010-03-12 16:04:50 -08:00
2010-03-13 14:45:49 -08:00
2010-03-07 17:04:49 -08:00
2010-03-07 17:04:49 -08:00
2010-03-08 16:55:37 +01:00
2010-03-12 16:04:50 -08:00
2010-03-12 15:52:40 -08:00
2010-03-07 17:04:52 -08:00
2010-03-07 17:04:49 -08:00
2010-03-07 17:04:48 -08:00
2010-03-12 16:04:50 -08:00
2010-03-08 23:19:15 -08:00
2010-03-06 11:33:09 -08:00
2010-03-14 11:14:58 -07:00
2010-03-12 16:04:50 -08:00
2010-03-13 14:38:31 -08:00
2010-03-14 11:13:54 -07:00
2010-03-08 16:55:37 +01:00
2010-03-16 19:49:21 +00:00
2010-03-09 11:55:27 +11:00
2010-03-07 17:04:49 -08:00
2010-03-14 11:13:54 -07:00
2010-03-08 16:55:37 +01:00
2010-03-12 16:41:09 -08:00
2010-03-14 20:28:39 -07:00
2010-03-12 16:21:24 -08:00
2010-03-12 16:04:50 -08:00
2010-03-13 14:50:18 -08:00
2010-03-07 17:04:49 -08:00
2010-03-08 16:55:37 +01:00
Merge branches 'battery-2.6.34', 'bugzilla-10805', 'bugzilla-14668', 'bugzilla-531916-power-state', 'ht-warn-2.6.34', 'pnp', 'processor-rename', 'sony-2.6.34', 'suse-bugzilla-531547', 'tz-check', 'video' and 'misc-2.6.34' into release
2010-03-14 21:30:17 -04:00
2010-03-12 16:00:54 -08:00
Merge branches 'battery-2.6.34', 'bugzilla-10805', 'bugzilla-14668', 'bugzilla-531916-power-state', 'ht-warn-2.6.34', 'pnp', 'processor-rename', 'sony-2.6.34', 'suse-bugzilla-531547', 'tz-check', 'video' and 'misc-2.6.34' into release
2010-03-14 21:30:17 -04:00
2010-03-14 20:08:38 -04:00
Merge branches 'battery-2.6.34', 'bugzilla-10805', 'bugzilla-14668', 'bugzilla-531916-power-state', 'ht-warn-2.6.34', 'pnp', 'processor-rename', 'sony-2.6.34', 'suse-bugzilla-531547', 'tz-check', 'video' and 'misc-2.6.34' into release
2010-03-14 21:30:17 -04:00
2010-03-12 15:52:43 -08:00
2010-03-07 22:17:08 +01:00
2010-03-14 20:28:39 -07:00
2010-03-13 14:50:18 -08:00
2010-03-13 21:29:38 -08:00
2010-03-12 16:04:50 -08:00
2010-03-08 20:21:04 +00:00
2010-03-08 16:55:37 +01:00
2010-03-07 17:04:48 -08:00
2010-03-07 17:04:51 -08:00
2010-03-12 16:04:50 -08:00
2010-03-12 16:04:50 -08:00
2010-03-13 21:29:38 -08:00
2010-03-12 16:04:50 -08:00
2010-03-08 13:48:01 +00:00
2010-03-07 17:04:49 -08:00
2010-03-08 20:21:04 +00:00