diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-13 11:54:45 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-20 15:04:59 +0300 |
commit | 1ab2234eefe5c6faa7d49ff5d2f21ac4204a8ca8 (patch) | |
tree | 64292be785973c5d19fa029adc38769ed4433005 /drivers/media/radio/si4713 | |
parent | 7fb2e072d41b1da5ddf29a1ba62f0e380d94a855 (diff) | |
download | linux-1ab2234eefe5c6faa7d49ff5d2f21ac4204a8ca8.tar.xz |
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/si4713')
-rw-r--r-- | drivers/media/radio/si4713/radio-usb-si4713.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/radio/si4713/radio-usb-si4713.c b/drivers/media/radio/si4713/radio-usb-si4713.c index e5e5a1672bdb..febc9c1e78ff 100644 --- a/drivers/media/radio/si4713/radio-usb-si4713.c +++ b/drivers/media/radio/si4713/radio-usb-si4713.c @@ -49,7 +49,7 @@ MODULE_LICENSE("GPL v2"); #define USB_RESP_TIMEOUT 50000 /* USB Device ID List */ -static struct usb_device_id usb_si4713_usb_device_table[] = { +static const struct usb_device_id usb_si4713_usb_device_table[] = { {USB_DEVICE_AND_INTERFACE_INFO(USB_SI4713_VENDOR, USB_SI4713_PRODUCT, USB_CLASS_HID, 0, 0) }, { } /* Terminating entry */ |