linux/drivers/staging/otus
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
..
80211core Staging: otus: zfTkipInit(): increment another pointer 2010-03-03 16:42:42 -08:00
hal Staging: otus: remove unused constants 2010-03-03 16:42:41 -08:00
apdbg.c Staging: otus: fix some sparse warnings 2010-03-03 16:42:27 -08:00
athr_common.h Staging: otus : checkpatch.pl cleanup for header files 2009-12-11 12:23:11 -08:00
ioctl.c Staging: otus: dont mix declarations and code 2010-03-03 16:42:41 -08:00
Kconfig Staging: otus: Add select WEXT_PRIV to Kconfig to prevent build failure 2010-03-03 16:42:40 -08:00
Makefile
oal_dt.h Staging: otus : checkpatch.pl cleanup for header files 2009-12-11 12:23:11 -08:00
oal_marc.h Staging: otus : checkpatch.pl cleanup for header files 2009-12-11 12:23:11 -08:00
TODO staging: document that the wifi staging drivers a bit better 2009-04-03 14:54:27 -07:00
usbdrv.c Staging: otus : checkpatch.pl cleanup for some more .c files 2009-12-11 12:23:11 -08:00
usbdrv.h Staging: otus : checkpatch.pl cleanup for header files 2009-12-11 12:23:11 -08:00
wrap_buf.c Staging: otus : checkpatch.pl cleanup for some more .c files 2009-12-11 12:23:11 -08:00
wrap_dbg.c Staging: otus : checkpatch.pl cleanup for .c files 2009-12-11 12:23:11 -08:00
wrap_ev.c Staging: otus : checkpatch.pl cleanup for some more .c files 2009-12-11 12:23:11 -08:00
wrap_mem.c Staging: otus : checkpatch.pl cleanup for .c files 2009-12-11 12:23:11 -08:00
wrap_mis.c Staging: otus : checkpatch.pl cleanup for some more .c files 2009-12-11 12:23:11 -08:00
wrap_pkt.c Staging: otus : checkpatch.pl cleanup for some more .c files 2009-12-11 12:23:11 -08:00
wrap_sec.c Staging: otus : checkpatch.pl cleanup for some more .c files 2009-12-11 12:23:11 -08:00
wrap_usb.c Staging: otus : checkpatch.pl cleanup for some more .c files 2009-12-11 12:23:11 -08:00
wwrap.c Staging: otus: Drop an unnecessary NULL test 2009-09-15 12:01:33 -07:00
zdcompat.h tree-wide: fix misspelling of "definition" in comments 2009-12-04 23:41:47 +01:00
zdusb.c staging: make USB device id constant 2010-03-03 16:42:42 -08:00
zdusb.h Staging: otus : checkpatch.pl cleanup for header files 2009-12-11 12:23:11 -08:00