summaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/streamzap.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-13 10:54:44 +0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2017-10-04 20:06:09 +0200
commit5fad16b5969b43a9722bbe3b288e40bff0003504 (patch)
tree9dc83ca0328a0c692ea61466f725b8cc5ada4f3e /drivers/media/rc/streamzap.c
parent[media] media: lirc_dev: merge struct irctl into struct lirc_dev (diff)
downloadlinux-5fad16b5969b43a9722bbe3b288e40bff0003504.tar.xz
linux-5fad16b5969b43a9722bbe3b288e40bff0003504.zip
[media] media: rc: 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: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/rc/streamzap.c')
-rw-r--r--drivers/media/rc/streamzap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/streamzap.c b/drivers/media/rc/streamzap.c
index f03a174ddf9d..4eebfcfc10f3 100644
--- a/drivers/media/rc/streamzap.c
+++ b/drivers/media/rc/streamzap.c
@@ -43,7 +43,7 @@
#define USB_STREAMZAP_PRODUCT_ID 0x0000
/* table of devices that work with this driver */
-static struct usb_device_id streamzap_table[] = {
+static const struct usb_device_id streamzap_table[] = {
/* Streamzap Remote Control */
{ USB_DEVICE(USB_STREAMZAP_VENDOR_ID, USB_STREAMZAP_PRODUCT_ID) },
/* Terminating entry */