diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-06 12:18:55 +0530 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-06 22:20:09 +0200 |
commit | 57ee11eaa1e985d73a2762d28ee1eeef037d10ec (patch) | |
tree | 29b9a0b725c183b9771ab1e7d65aba76f2adf9bb /sound/usb | |
parent | 5e055ea2117cb0bc840e72b5f506c2c460cfb1da (diff) | |
download | linux-57ee11eaa1e985d73a2762d28ee1eeef037d10ec.tar.gz linux-57ee11eaa1e985d73a2762d28ee1eeef037d10ec.tar.bz2 linux-57ee11eaa1e985d73a2762d28ee1eeef037d10ec.zip |
ALSA: snd-usb-caiaq: 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>
Diffstat (limited to 'sound/usb')
-rw-r--r-- | sound/usb/caiaq/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/caiaq/device.c b/sound/usb/caiaq/device.c index b871ba407e4e..0fb6b1b79261 100644 --- a/sound/usb/caiaq/device.c +++ b/sound/usb/caiaq/device.c @@ -81,7 +81,7 @@ enum { DEPTH_32 = 3 }; -static struct usb_device_id snd_usb_id_table[] = { +static const struct usb_device_id snd_usb_id_table[] = { { .match_flags = USB_DEVICE_ID_MATCH_DEVICE, .idVendor = USB_VID_NATIVEINSTRUMENTS, |