2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 12:14:01 +08:00
linux-next/drivers/staging/rtl8192su
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
..
ieee80211 Staging: rtl8192su, rtl8192u: use min_t() in store_debug_level() 2010-03-03 16:42:38 -08:00
authors
Kconfig Staging: rtl8192su: Build should select WIRELESS_EXT 2010-03-03 16:42:33 -08:00
Makefile Staging: rtl8192su: compile fixes 2009-09-15 12:02:16 -07:00
r819xU_cmdpkt.c Staging: fix assorted typos all over the place 2009-12-11 12:23:20 -08:00
r819xU_cmdpkt.h Staging: rtl8192su: remove dead code 2009-09-15 12:01:40 -07:00
r819xU_HTGen.h
r819xU_HTType.h Staging: rtl8192su: remove USB_TX_DRIVER_AGGREGATION_ENABLE ifdefs 2009-09-15 12:01:37 -07:00
r8180_93cx6.c
r8180_93cx6.h Staging: rtl8192su: remove RTL8192SU ifdefs 2009-09-15 12:01:39 -07:00
r8192S_Efuse.c Staging: rtl8192su: remove dead code 2009-09-15 12:01:40 -07:00
r8192S_Efuse.h
r8192S_firmware.c Staging: rtl8192su: remove NOT_YET ifdefs 2009-09-15 12:01:42 -07:00
r8192S_firmware.h Staging: rtl8192su: remove RTL8192SE ifdefs 2009-09-15 12:01:39 -07:00
r8192S_hw.h Staging: rtl8192su: remove dead code 2009-09-15 12:01:40 -07:00
r8192S_phy.c Staging: fix assorted typos all over the place 2009-12-11 12:23:20 -08:00
r8192S_phy.h Staging: rtl8192su: remove kernel version compatibility wrappers 2009-09-15 12:01:28 -07:00
r8192S_phyreg.h Staging: fix assorted typos all over the place 2009-12-11 12:23:20 -08:00
r8192S_rtl6052.c Staging: fix assorted typos all over the place 2009-12-11 12:23:20 -08:00
r8192S_rtl6052.h Staging: rtl8192su: remove dead code 2009-09-15 12:01:40 -07:00
r8192S_rtl8225.c
r8192S_rtl8225.h
r8192SU_HWImg.c
r8192SU_HWImg.h
r8192U_core.c staging: make USB device id constant 2010-03-03 16:42:42 -08:00
r8192U_dm.c Staging: rtl8187x: Use %pM for mac address output 2010-03-03 16:42:29 -08:00
r8192U_dm.h Staging: rtl8192su: remove dead code 2009-09-15 12:01:40 -07:00
r8192U_pm.c Staging: rtl8192su: remove CONFIG_RTL8192_PM ifdefs 2009-09-15 12:01:37 -07:00
r8192U_pm.h Staging: rtl8192su: remove CONFIG_RTL8192_PM ifdefs 2009-09-15 12:01:37 -07:00
r8192U_wx.c Staging: fix assorted typos all over the place 2009-12-11 12:23:20 -08:00
r8192U_wx.h Staging: rtl8192su: remove duplicate dot11d.h and ieee80211.h includes 2009-09-15 12:01:27 -07:00
r8192U.h Staging: rtl8192su: remove dead code 2009-09-15 12:01:40 -07:00
TODO Staging: update TODO files 2009-11-30 16:39:42 -08:00