diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-13 10:54:45 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-20 14:04:59 +0200 |
commit | 1ab2234eefe5c6faa7d49ff5d2f21ac4204a8ca8 (patch) | |
tree | 64292be785973c5d19fa029adc38769ed4433005 /drivers/media/radio/radio-shark.c | |
parent | media: usb: constify usb_device_id (diff) | |
download | linux-1ab2234eefe5c6faa7d49ff5d2f21ac4204a8ca8.tar.xz linux-1ab2234eefe5c6faa7d49ff5d2f21ac4204a8ca8.zip |
media: radio: 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: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/radio/radio-shark.c')
-rw-r--r-- | drivers/media/radio/radio-shark.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/radio/radio-shark.c b/drivers/media/radio/radio-shark.c index 23971f5502a8..22f3466af2b1 100644 --- a/drivers/media/radio/radio-shark.c +++ b/drivers/media/radio/radio-shark.c @@ -392,7 +392,7 @@ static int usb_shark_resume(struct usb_interface *intf) #endif /* Specify the bcdDevice value, as the radioSHARK and radioSHARK2 share ids */ -static struct usb_device_id usb_shark_device_table[] = { +static const struct usb_device_id usb_shark_device_table[] = { { .match_flags = USB_DEVICE_ID_MATCH_DEVICE_AND_VERSION | USB_DEVICE_ID_MATCH_INT_CLASS, .idVendor = 0x077d, |