Skip to content

Commit

Permalink
uwb: make USB device id table constant
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: David Vrabel <david.vrabel@csr.com>
  • Loading branch information
Márton Németh authored and David Vrabel committed Jan 14, 2010
1 parent 145434b commit 34446d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/uwb/hwa-rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ static int hwarc_post_reset(struct usb_interface *iface)
}

/** USB device ID's that we handle */
static struct usb_device_id hwarc_id_table[] = {
static const struct usb_device_id hwarc_id_table[] = {
/* D-Link DUB-1210 */
{ USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3d02, 0xe0, 0x01, 0x02),
.driver_info = WUSB_QUIRK_WHCI_CMD_EVT },
Expand Down
2 changes: 1 addition & 1 deletion drivers/uwb/i1480/dfu/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ int i1480_usb_probe(struct usb_interface *iface, const struct usb_device_id *id)


/** USB device ID's that we handle */
static struct usb_device_id i1480_usb_id_table[] = {
static const struct usb_device_id i1480_usb_id_table[] = {
i1480_USB_DEV(0x8086, 0xdf3b),
i1480_USB_DEV(0x15a9, 0x0005),
i1480_USB_DEV(0x07d1, 0x3802),
Expand Down

0 comments on commit 34446d0

Please sign in to comment.