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

Bluetooth: Declare btusb_table[] and blacklist_table[] as const

The btusb_table[] and blacklist_table[] 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
54265202 60298775

+2 -2
+2 -2
drivers/bluetooth/btusb.c
··· 50 50 #define BTUSB_ATH3012 0x80 51 51 #define BTUSB_INTEL 0x100 52 52 53 - static struct usb_device_id btusb_table[] = { 53 + static const struct usb_device_id btusb_table[] = { 54 54 /* Generic Bluetooth USB device */ 55 55 { USB_DEVICE_INFO(0xe0, 0x01, 0x01) }, 56 56 ··· 121 121 122 122 MODULE_DEVICE_TABLE(usb, btusb_table); 123 123 124 - static struct usb_device_id blacklist_table[] = { 124 + static const struct usb_device_id blacklist_table[] = { 125 125 /* CSR BlueCore devices */ 126 126 { USB_DEVICE(0x0a12, 0x0001), .driver_info = BTUSB_CSR }, 127 127