kernel-fxtec-pro1x/drivers/staging/winbond
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
..
core.h Staging: w35und: Convert typedef LOCAL_PARA to struct wb_local_para 2010-03-03 16:42:32 -08:00
Kconfig Staging: wireless drivers Kconfig change 2009-10-30 14:47:44 -07:00
localpara.h Staging: w35und: Remove unused typedef CHAN_LIST 2010-03-03 16:42:32 -08:00
mac_structures.h
Makefile
mds.c Staging: w35und: Convert typedef DESCRIPTOR to struct wb35_descriptor 2009-09-15 12:02:17 -07:00
mds_f.h Staging: w35und: Remove unused typedef RXLAYER1 2010-03-03 16:42:32 -08:00
mds_s.h Staging: w35und: Remove unused typedef RXLAYER1 2010-03-03 16:42:32 -08:00
mlme_s.h Staging: w35und: Remove unused typedefs MLME_DEAUTHREQ_PARA and MLME_DISASSOCREQ_PARA 2010-03-03 16:42:32 -08:00
mlmetxrx.c Staging: w35und: Convert typedef DESCRIPTOR to struct wb35_descriptor 2009-09-15 12:02:17 -07:00
mlmetxrx_f.h Staging: w35und: Convert typedef DESCRIPTOR to struct wb35_descriptor 2009-09-15 12:02:17 -07:00
mto.c Staging: w35und: Remove some write-only struct members 2009-09-15 12:02:17 -07:00
mto.h Staging: w35und: Remove unused typedef TXRETRY_REC 2010-03-03 16:42:32 -08:00
phy_calibration.c
phy_calibration.h
README
reg.c Staging: w35und: Convert typedef ChanInfo to struct chan_info 2010-03-03 16:42:32 -08:00
scan_s.h Staging: w35und: Remove unused typedef CHAN_LIST 2010-03-03 16:42:32 -08:00
sme_api.h Staging: w35und: Convert typedef ChanInfo to struct chan_info 2010-03-03 16:42:32 -08:00
sysdef.h
wb35reg.c
wb35reg_f.h Staging: w35und: Convert typedef ChanInfo to struct chan_info 2010-03-03 16:42:32 -08:00
wb35reg_s.h
wb35rx.c Staging: w35und: Convert typedef DESCRIPTOR to struct wb35_descriptor 2009-09-15 12:02:17 -07:00
wb35rx_f.h
wb35rx_s.h
wb35tx.c
wb35tx_f.h
wb35tx_s.h
wbhal_f.h Staging: w35und: Convert typedef DESCRIPTOR to struct wb35_descriptor 2009-09-15 12:02:17 -07:00
wbhal_s.h Staging: w35und: Convert typedef DESCRIPTOR to struct wb35_descriptor 2009-09-15 12:02:17 -07:00
wblinux_f.h
wbusb.c staging: make USB device id constant 2010-03-03 16:42:42 -08:00
wbusb_s.h

TODO:
	- sparse cleanups
	- checkpatch cleanups
	- kerneldoc cleanups
	- remove typedefs
	- remove unused ioctls
	- use cfg80211 for regulatory stuff
	- fix 4k stack problems

Please send patches to Greg Kroah-Hartman <greg@kroah.com> and
Pavel Machek <pavel@suse.cz>