kernel-ark/drivers/staging/comedi
Németh Márton a457732b83 staging: make USB device id constant
The id_table field of the struct usb_device_id is constant in <linux/usb.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-03 16:42:42 -08:00
..
drivers staging: make USB device id constant 2010-03-03 16:42:42 -08:00
kcomedilib Staging: comedi: Remove references to dead EXPORT_SYMTAB 2009-09-15 12:01:33 -07:00
comedi_compat32.c Staging: comedi: Don't check for -ENOIOCTLCMD 2009-12-11 12:23:01 -08:00
comedi_compat32.h Staging: comedi: remove check for HAVE_COMPAT_IOCTL 2009-12-11 12:23:01 -08:00
comedi_fops.c Staging: comedi: remove check for HAVE_COMPAT_IOCTL 2009-12-11 12:23:01 -08:00
comedi_fops.h
comedi_ksyms.c Staging: comedi: Remove references to dead EXPORT_SYMTAB 2009-09-15 12:01:33 -07:00
comedi.h Staging: comedi: removed "depricated" from COMEDI_CB_BLOCK 2009-12-23 11:27:45 -08:00
comedidev.h Staging: comedi: comedidev.h: Fixed checkpatch.pl issues 2009-12-11 12:21:49 -08:00
comedilib.h Staging: Comedi: Lindent changes to comdi driver in staging tree 2009-09-15 12:01:33 -07:00
drivers.c Staging: comedi: drivers.c: checkpatch fix 2009-12-11 12:21:48 -08:00
Kconfig Staging: comedi: fix build on arches that don't want comedi drivers 2009-10-09 13:47:25 -07:00
Makefile Staging: comedi: remove RT code 2009-06-19 11:00:33 -07:00
pci_ids.h
proc.c Staging: Comedi: Lindent changes to comdi driver in staging tree 2009-09-15 12:01:33 -07:00
range.c Staging: Comedi: Lindent changes to comdi driver in staging tree 2009-09-15 12:01:33 -07:00
TODO Staging: comedi: David doesn't want to get comedi patches 2009-05-08 19:39:28 -07:00
wrapper.h