linux/drivers/staging
Németh Márton 13ac58dac0 staging: make PCI device id constant
The id_table field of the struct pci_driver is constant in <linux/pci.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
..
arlan
asus_oled Staging: asus_oled: Add NULL test for kmalloc 2010-03-03 16:42:40 -08:00
batman-adv Staging: batman-adv: Update the README for mainline usage. 2010-03-03 16:42:40 -08:00
comedi Staging: comedi: reorder check in pcmmio_attach() 2010-03-03 16:42:38 -08:00
crystalhd staging: crystalhd: trim register defines 2010-03-03 16:42:41 -08:00
cx25821 staging: cx25821: avoid NULL pointer dereference 2010-03-03 16:42:40 -08:00
dream Staging: s5k3e2fx.c: simplify complexity by factoring 2010-03-03 16:42:33 -08:00
dt3155 Staging: dt3155: remove compat code 2010-03-03 16:42:38 -08:00
echo
et131x Staging: et131x_netdev.c: use %pM to shown MAC address 2010-03-03 16:42:39 -08:00
frontier
go7007
hv Staging: hv: match on DMI values to know if we should run. 2010-03-03 16:42:37 -08:00
iio staging: iio: Fix incorrect existence check for a shared event pointer. 2010-03-03 16:42:42 -08:00
line6
mimio Staging: mimio: checkpatch.pl line > 80 chars fixes 2010-03-03 16:42:29 -08:00
netwave
octeon
otus Staging: otus: zfTkipInit(): increment another pointer 2010-03-03 16:42:42 -08:00
panel Staging: panel: Adjust range for PANEL_KEYPAD in Kconfig 2009-12-23 11:27:49 -08:00
phison staging: make PCI device id constant 2010-03-03 16:42:42 -08:00
poch
pohmelfs Staging: Fixed pohmelfs regression because of per-bdi writeback. 2010-03-03 16:42:40 -08:00
quatech_usb2
ramzswap Staging: ramzswap: Minor spelling fixes 2010-03-03 16:42:38 -08:00
rar staging: make PCI device id constant 2010-03-03 16:42:42 -08:00
rt2860 Staging: rt2870: Remove unnecessary forward declarations 2010-03-03 16:42:38 -08:00
rt2870
rt3070
rt3090
rtl8187se Staging: rtl8187x: Use %pM for mac address output 2010-03-03 16:42:29 -08:00
rtl8192e Staging: r8192E_core.c: use %pM to shown MAC address 2010-03-03 16:42:39 -08:00
rtl8192su Staging: rtl8192su: buffer overflow in r8192U_core.c 2010-03-03 16:42:39 -08:00
rtl8192u Staging: rtl8192u: Add select WEXT_PRIV to Kconfig to prevent build failure 2010-03-03 16:42:41 -08:00
samsung-laptop
sep staging: make PCI device id constant 2010-03-03 16:42:42 -08:00
serqt_usb2
slicoss staging: slicoss Use pci_set_consistent_dma_mask. 2010-03-03 16:42:28 -08:00
sm7xx staging: make PCI device id constant 2010-03-03 16:42:42 -08:00
strip
udlfb Staging: udlfb: add dynamic modeset support 2010-03-03 16:42:31 -08:00
usbip
vme staging: make PCI device id constant 2010-03-03 16:42:42 -08:00
vt6655 Staging: v56655: add missing parentheses (in comment) 2010-03-03 16:42:40 -08:00
vt6656 Staging/vt66*: kconfig, depends on WLAN 2009-12-23 11:27:50 -08:00
wavelan
winbond Staging: w35und: Remove unused typedefs MLME_DEAUTHREQ_PARA and MLME_DISASSOCREQ_PARA 2010-03-03 16:42:32 -08:00
wlags49_h2 staging: Fix misspelling of "successful" and variants. 2010-03-03 16:42:31 -08:00
wlags49_h25
wlan-ng Staging: wlan-ng: Add select WEXT_PRIV to Kconfig to prevent build failure 2010-03-03 16:42:41 -08:00
Kconfig staging: add Broadcom Crystal HD driver 2010-03-03 16:42:34 -08:00
Makefile staging: add Broadcom Crystal HD driver 2010-03-03 16:42:34 -08:00
staging.c