kernel-fxtec-pro1x/drivers/usb/serial
Németh Márton 7d40d7e85a USB serial: 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-02 14:54:16 -08:00
..
aircable.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
ark3116.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
belkin_sa.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
belkin_sa.h
bus.c USB: usb-serial: call port_probe and port_remove at the right times 2009-06-15 21:44:47 -07:00
ch341.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
ChangeLog.history trivial: Fix misspelling of firmware 2009-03-30 15:21:59 +02:00
console.c USB serial: update the console driver 2009-09-19 13:13:42 -07:00
cp210x.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
cyberjack.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
cypress_m8.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
cypress_m8.h trivial: fix typo "to to" in multiple files 2009-09-21 15:14:55 +02:00
digi_acceleport.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
empeg.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
ezusb.c USB: remove use of err() in drivers/usb/serial 2008-10-17 14:41:10 -07:00
ezusb_convert.pl
ftdi_sio.c USB: ftdi_sio: remove unnecessary initialisations 2010-03-02 14:53:39 -08:00
ftdi_sio.h USB: ftdi_sio: isolate all device IDs to new ftdi_sio_ids.h header 2009-12-23 11:34:12 -08:00
ftdi_sio_ids.h USB: ftdi_sio: add device IDs (several ELV, one Mindstorms NXT) 2010-02-16 15:11:03 -08:00
funsoft.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
garmin_gps.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
generic.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
hp4x.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
io_16654.h
io_edgeport.c USB: serial: fix DMA buffers on stack for io_edgeport.c 2010-03-02 14:53:59 -08:00
io_edgeport.h
io_ionsp.h
io_tables.h USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
io_ti.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
io_ti.h
io_usbvend.h
ipaq.c USB: ipaq: fix oops when device is plugged in 2009-10-09 13:52:07 -07:00
ipaq.h
ipw.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
ir-usb.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
iuu_phoenix.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
iuu_phoenix.h
Kconfig trivial: fix typos/grammar errors in Kconfig texts 2009-03-30 15:22:01 +02:00
keyspan.c tty: USB does not need the filp argument in the drivers 2009-09-19 13:13:26 -07:00
keyspan.h USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
keyspan_pda.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
keyspan_usa26msg.h
keyspan_usa28msg.h
keyspan_usa49msg.h
keyspan_usa67msg.h
keyspan_usa90msg.h
kl5kusb105.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
kl5kusb105.h
kobil_sct.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
kobil_sct.h
Makefile USB: serial: rename cp2101 driver to cp210x 2009-03-24 16:20:44 -07:00
Makefile-keyspan_pda_fw
mct_u232.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
mct_u232.h USB: serial mct_usb232: move DMA buffers to heap 2010-03-02 14:53:06 -08:00
mos7720.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
mos7840.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
moto_modem.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
navman.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
omninet.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
opticon.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
option.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
oti6858.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
oti6858.h
pl2303.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
pl2303.h USB: serial: pl2303: new hardware support - sanwa multimeter 2009-09-23 06:46:15 -07:00
qcserial.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
safe_serial.c USB: remove use of err() in drivers/usb/serial 2008-10-17 14:41:10 -07:00
siemens_mpi.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
sierra.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
spcp8x5.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
symbolserial.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
ti_usb_3410_5052.c tty: USB does not need the filp argument in the drivers 2009-09-19 13:13:26 -07:00
ti_usb_3410_5052.h USB: two more usb ids for ti_usb_3410_5052 2009-02-09 11:19:48 -08:00
usb-serial.c USB: serial: fix typo in debug message 2010-03-02 14:53:03 -08:00
usb_debug.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
visor.c USB: visor: fix DMA buffers on stack 2010-03-02 14:53:57 -08:00
visor.h
whiteheat.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
whiteheat.h