summaryrefslogtreecommitdiffstats
path: root/sound/usb
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-06 12:18:55 +0530
committerTakashi Iwai <tiwai@suse.de>2017-08-06 22:20:09 +0200
commit57ee11eaa1e985d73a2762d28ee1eeef037d10ec (patch)
tree29b9a0b725c183b9771ab1e7d65aba76f2adf9bb /sound/usb
parent5e055ea2117cb0bc840e72b5f506c2c460cfb1da (diff)
downloadop-kernel-dev-57ee11eaa1e985d73a2762d28ee1eeef037d10ec.zip
op-kernel-dev-57ee11eaa1e985d73a2762d28ee1eeef037d10ec.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/caiaq/device.c b/sound/usb/caiaq/device.c
index b871ba4..0fb6b1b7 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,
OpenPOWER on IntegriCloud