1
linux/drivers/bluetooth
Márton Németh 8978111e2d Bluetooth: 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 bcm203x_table 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: Márton Németh <nm127@freemail.hu>
Cc: Julia Lawall <julia@diku.dk>
Cc: cocci@diku.dk
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2010-02-27 14:05:38 +01:00
..
ath3k.c Bluetooth: Add DFU driver for Atheros Bluetooth chipset AR3011 2010-01-30 05:57:34 -08:00
bcm203x.c Bluetooth: Make USB device id constant 2010-02-27 14:05:38 +01:00
bfusb.c Bluetooth: Remove some pointless conditionals before kfree_skb() 2009-02-27 06:14:50 +01:00
bluecard_cs.c Bluetooth: Redo checks in IRQ handler for shared IRQ support 2010-01-30 05:57:26 -08:00
bpa10x.c Bluetooth: Enable per-module dynamic debug messages 2008-11-30 12:17:28 +01:00
bt3c_cs.c Bluetooth: Redo checks in IRQ handler for shared IRQ support 2010-01-30 05:57:26 -08:00
btmrvl_debugfs.c Bluetooth: Removal of unused variable in btmrvl driver 2009-12-03 19:34:17 +01:00
btmrvl_drv.h Bluetooth: Enable auto sleep mode for btmrvl driver 2009-12-03 19:34:25 +01:00
btmrvl_main.c Bluetooth: Enable auto sleep mode for btmrvl driver 2009-12-03 19:34:25 +01:00
btmrvl_sdio.c Bluetooth: Add __init/__exit macros to Marvell SDIO driver 2010-02-27 14:05:37 +01:00
btmrvl_sdio.h Bluetooth: Fix incorrect alignment in Marvell BT-over-SDIO driver 2009-08-22 14:25:34 -07:00
btsdio.c Bluetooth: Enable per-module dynamic debug messages 2008-11-30 12:17:28 +01:00
btuart_cs.c Bluetooth: Redo checks in IRQ handler for shared IRQ support 2010-01-30 05:57:26 -08:00
btusb.c Bluetooth: Prevent ill-timed autosuspend in USB driver 2009-12-17 12:12:49 -08:00
dtl1_cs.c Bluetooth: Redo checks in IRQ handler for shared IRQ support 2010-01-30 05:57:26 -08:00
hci_bcsp.c Bluetooth: Fix false errors from bcsp_pkt_cull function 2009-08-24 13:32:32 -07:00
hci_h4.c Bluetooth: Remove some pointless conditionals before kfree_skb() 2009-02-27 06:14:50 +01:00
hci_ldisc.c tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
hci_ll.c Bluetooth: Remove some pointless conditionals before kfree_skb() 2009-02-27 06:14:50 +01:00
hci_uart.h [Bluetooth] Add UART driver for Texas Instruments' BRF63xx chips 2007-10-22 02:59:44 -07:00
hci_vhci.c Bluetooth: Fix miscdev ops owner for virtual driver 2009-12-03 19:34:19 +01:00
Kconfig Bluetooth: Add DFU driver for Atheros Bluetooth chipset AR3011 2010-01-30 05:57:34 -08:00
Makefile Bluetooth: Add DFU driver for Atheros Bluetooth chipset AR3011 2010-01-30 05:57:34 -08:00