linux/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
..
Kconfig Staging: wireless drivers Kconfig change 2009-10-30 14:47:44 -07:00
Makefile Staging: w35und: merge rest of wbhal.c to phy_calibration.c 2009-06-19 11:00:38 -07:00
README Staging: document 4k stack problem for winbond driver 2008-10-22 09:56:29 -07:00
core.h Staging: w35und: Convert typedef LOCAL_PARA to struct wb_local_para 2010-03-03 16:42:32 -08:00
localpara.h Staging: w35und: Remove unused typedef CHAN_LIST 2010-03-03 16:42:32 -08:00
mac_structures.h Staging: w35und: #include cleanup 2009-01-06 13:51:47 -08:00
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 Staging: w35und: merge rest of wbhal.c to phy_calibration.c 2009-06-19 11:00:38 -07:00
phy_calibration.h Staging: w35und: remove hw_data_t typedef 2009-04-03 14:53:16 -07:00
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 Staging: w35und: remove rxisr.c as dead code 2009-01-06 13:51:52 -08:00
wb35reg.c Staging: w35und: remove hw_data_t typedef 2009-04-03 14:53:16 -07:00
wb35reg_f.h Staging: w35und: Convert typedef ChanInfo to struct chan_info 2010-03-03 16:42:32 -08:00
wb35reg_s.h Staging: w35und: move source files to one directory 2009-01-06 13:51:47 -08:00
wb35rx.c Staging: w35und: Convert typedef DESCRIPTOR to struct wb35_descriptor 2009-09-15 12:02:17 -07:00
wb35rx_f.h Staging: w35und: remove hw_data_t typedef 2009-04-03 14:53:16 -07:00
wb35rx_s.h Staging: w35und: typedef removal 2009-04-03 14:53:16 -07:00
wb35tx.c Staging: w35und: Convert MDS typedef to struct w35_mds 2009-09-15 12:02:17 -07:00
wb35tx_f.h Staging: w35und: remove hw_data_t typedef 2009-04-03 14:53:16 -07:00
wb35tx_s.h Staging: w35und: typedef removal 2009-04-03 14:53:16 -07:00
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 Staging: w35und: remove ->shutdown from struct wbsoft_priv 2009-01-06 13:51:50 -08:00
wbusb.c staging: make USB device id constant 2010-03-03 16:42:42 -08:00
wbusb_s.h Staging: w35und: typedef removal 2009-04-03 14:53:16 -07:00

README

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>