summaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/imon.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-13 05:54:44 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2017-10-04 15:06:09 -0300
commit5fad16b5969b43a9722bbe3b288e40bff0003504 (patch)
tree9dc83ca0328a0c692ea61466f725b8cc5ada4f3e /drivers/media/rc/imon.c
parentb15e39379fe8700fe0ec849a5c5ee2b44cd16381 (diff)
downloadop-kernel-dev-5fad16b5969b43a9722bbe3b288e40bff0003504.zip
op-kernel-dev-5fad16b5969b43a9722bbe3b288e40bff0003504.tar.gz
[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/imon.c')
-rw-r--r--drivers/media/rc/imon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/imon.c b/drivers/media/rc/imon.c
index 7b3f31c..b93dc6e 100644
--- a/drivers/media/rc/imon.c
+++ b/drivers/media/rc/imon.c
@@ -346,7 +346,7 @@ static const struct imon_usb_dev_descr imon_ir_raw = {
* devices use the SoundGraph vendor ID (0x15c2). This driver only supports
* the ffdc and later devices, which do onboard decoding.
*/
-static struct usb_device_id imon_usb_id_table[] = {
+static const struct usb_device_id imon_usb_id_table[] = {
/*
* Several devices with this same device ID, all use iMON_PAD.inf
* SoundGraph iMON PAD (IR & VFD)
OpenPOWER on IntegriCloud