summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-06 12:18:57 +0530
committerTakashi Iwai <tiwai@suse.de>2017-08-06 22:20:11 +0200
commit20ec43e22727086f508d28109867c451ede497d3 (patch)
tree32710b5413a3e3772158f57e514102ec52e3ef10 /sound
parent8824ae2de876f7e73ca64937dca88e558db5b681 (diff)
downloadlinux-20ec43e22727086f508d28109867c451ede497d3.tar.bz2
ALSA: ua101: 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')
-rw-r--r--sound/usb/misc/ua101.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/misc/ua101.c b/sound/usb/misc/ua101.c
index c19a5dd05631..b05cd38400ff 100644
--- a/sound/usb/misc/ua101.c
+++ b/sound/usb/misc/ua101.c
@@ -1366,7 +1366,7 @@ static void ua101_disconnect(struct usb_interface *interface)
mutex_unlock(&devices_mutex);
}
-static struct usb_device_id ua101_ids[] = {
+static const struct usb_device_id ua101_ids[] = {
{ USB_DEVICE(0x0582, 0x0044) }, /* UA-1000 high speed */
{ USB_DEVICE(0x0582, 0x007d) }, /* UA-101 high speed */
{ USB_DEVICE(0x0582, 0x008d) }, /* UA-101 full speed */