diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-06 12:18:53 +0530 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-06 22:20:07 +0200 |
commit | 05d72cd5f1f03531e1e678f476bbe207a29ede87 (patch) | |
tree | d9f475556d8935583a81d107d751825fe04f1bb2 | |
parent | 2357f6f00098a437f9de084c3c34254d20dea789 (diff) |
ALSA: 6fire: constify usb_device_id.
usb_device_id are not supposed to change at runtime. All functions
working with usb_device_id provided by <linux/usb.h> work with
const usb_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/usb/6fire/chip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/6fire/chip.c b/sound/usb/6fire/chip.c index dcddfc354ba6..bc2a24f7a791 100644 --- a/sound/usb/6fire/chip.c +++ b/sound/usb/6fire/chip.c @@ -198,7 +198,7 @@ static void usb6fire_chip_disconnect(struct usb_interface *intf) } } -static struct usb_device_id device_table[] = { +static const struct usb_device_id device_table[] = { { .match_flags = USB_DEVICE_ID_MATCH_DEVICE, .idVendor = 0x0ccd, |