kernel-fxtec-pro1x/drivers/staging/go7007
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
..
go7007-driver.c V4L/DVB (13458): go7007: subdev conversion 2009-12-05 18:42:18 -02:00
go7007-fw.c V4L/DVB (12858): go7007: whitespacing cleanups 2009-09-19 00:13:36 -03:00
go7007-i2c.c V4L/DVB (12859): go7007: semaphore -> mutex conversion 2009-09-19 00:13:37 -03:00
go7007-priv.h V4L/DVB (13455): go7007: Add struct v4l2_device. 2009-12-05 18:42:00 -02:00
go7007-usb.c staging: make USB device id constant 2010-03-03 16:42:42 -08:00
go7007-v4l2.c V4L/DVB (13556): v4l: Remove unneeded video_device::minor assignments 2009-12-16 00:17:57 -02:00
go7007.h
go7007.txt V4L/DVB (12859): go7007: semaphore -> mutex conversion 2009-09-19 00:13:37 -03:00
Kconfig V4L/DVB (13020): go7007: Updates to Kconfig and Makefile 2009-09-19 00:53:44 -03:00
Makefile V4L/DVB (13456): s2250: Change module structure 2009-12-05 18:42:17 -02:00
README
s2250-board.c V4L/DVB (13457): s2250: subdev conversion 2009-12-05 18:42:18 -02:00
s2250-loader.c staging: make USB device id constant 2010-03-03 16:42:42 -08:00
s2250-loader.h staging/go7007: Fix compilation by re-adding the missing s2250-loader.h 2009-11-30 17:37:20 -02:00
saa7134-go7007.c Staging: go7007: saa7134 updates 2009-01-06 13:52:06 -08:00
snd-go7007.c V4L/DVB (12859): go7007: semaphore -> mutex conversion 2009-09-19 00:13:37 -03:00
wis-i2c.h go7007: Convert to the new i2c device binding model 2009-04-21 21:47:22 +02:00
wis-ov7640.c go7007: Convert to the new i2c device binding model 2009-04-21 21:47:22 +02:00
wis-saa7113.c go7007: Convert to the new i2c device binding model 2009-04-21 21:47:22 +02:00
wis-saa7115.c go7007: Convert to the new i2c device binding model 2009-04-21 21:47:22 +02:00
wis-sony-tuner.c staging: wis-sony-tuner.c: fix &&/|| error 2009-06-19 11:00:54 -07:00
wis-tw2804.c go7007: Convert to the new i2c device binding model 2009-04-21 21:47:22 +02:00
wis-tw9903.c V4L/DVB (12858): go7007: whitespacing cleanups 2009-09-19 00:13:36 -03:00
wis-uda1342.c go7007: Convert to the new i2c device binding model 2009-04-21 21:47:22 +02:00

Todo:
	- checkpatch.pl cleanups
	- sparse cleanups
	- lots of little modules, should be merged together
	  and added to the build.
	- testing?
	- handle churn in v4l layer.

Please send patchs to Greg Kroah-Hartman <greg@kroah.com> and Cc: Ross
Cohen <rcohen@snurgle.org> as well.