Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Bluetooth: Declare ath3k_table[] and ath3k_blist_tbl[] as const

The ath3k_table[] and ath3k_blist_tbl[] USB device tables can be
declared as const.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>

authored by

Marcel Holtmann and committed by
Johan Hedberg
3932eb33 e8549384

+2 -2
+2 -2
drivers/bluetooth/ath3k.c
··· 57 57 unsigned char reserved[0x07]; 58 58 }; 59 59 60 - static struct usb_device_id ath3k_table[] = { 60 + static const struct usb_device_id ath3k_table[] = { 61 61 /* Atheros AR3011 */ 62 62 { USB_DEVICE(0x0CF3, 0x3000) }, 63 63 ··· 112 112 #define BTUSB_ATH3012 0x80 113 113 /* This table is to load patch and sysconfig files 114 114 * for AR3012 */ 115 - static struct usb_device_id ath3k_blist_tbl[] = { 115 + static const struct usb_device_id ath3k_blist_tbl[] = { 116 116 117 117 /* Atheros AR3012 with sflash firmware*/ 118 118 { USB_DEVICE(0x0CF3, 0x0036), .driver_info = BTUSB_ATH3012 },