Skip to content

Commit

Permalink
ALSA: bcd2000: constify usb_device_id.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
ArvindYadavCs authored and tiwai committed Aug 6, 2017
1 parent 05d72cd commit 5e055ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/usb/bcd2000/bcd2000.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#define PREFIX "snd-bcd2000: "
#define BUFSIZE 64

static struct usb_device_id id_table[] = {
static const struct usb_device_id id_table[] = {
{ USB_DEVICE(0x1397, 0x00bd) },
{ },
};
Expand Down

0 comments on commit 5e055ea

Please sign in to comment.