linux/drivers/staging/line6
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
..
audio.c Staging: line6: convert to snd_card_create() 2009-04-17 11:06:25 -07:00
audio.h
capture.c staging: line6: Fix checkpatch errors in capture.c 2009-12-11 12:21:47 -08:00
capture.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
config.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
control.c staging: line6: Convert simple_strtoul() to strict_strtoul in control.c 2009-12-11 12:21:47 -08:00
control.h
driver.c staging: make USB device id constant 2010-03-03 16:42:42 -08:00
driver.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
dumprequest.c Staging: line6: fix checkpatch errors in dumprequest.c 2009-04-03 14:54:26 -07:00
dumprequest.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
Kconfig Staging: line6: fix build error, select SND_RAWMIDI 2009-04-03 14:54:26 -07:00
Makefile
midi.c staging: line6: Convert simple_strtoul to strict_strtoul in midi.c 2009-12-11 12:21:48 -08:00
midi.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
midibuf.c Staging: line6: fix checkpatch errors in midibuf.c 2009-04-03 14:54:26 -07:00
midibuf.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
pcm.c staging: line6: Fix checkpatch warnings in pcm.c 2009-12-11 12:21:47 -08:00
pcm.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
playback.c staging: line6: Fix checkpatch errors in playback.c 2009-12-11 12:21:46 -08:00
playback.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
pod.c staging: line6: Convert simple_strtoul to strict_strtoul in pod.c 2009-12-11 12:21:47 -08:00
pod.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
revision.h
toneport.c staging: line6: Convert simple_strtol to strict_strtol in toneport.c 2009-12-11 12:21:47 -08:00
toneport.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
usbdefs.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
variax.c staging: line6: Convert simple_strtoul to strict_strtoul in variax.c 2009-12-11 12:21:47 -08:00
variax.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00