diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-13 10:54:44 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2017-10-04 20:06:09 +0200 |
commit | 5fad16b5969b43a9722bbe3b288e40bff0003504 (patch) | |
tree | 9dc83ca0328a0c692ea61466f725b8cc5ada4f3e /drivers/media/rc/ati_remote.c | |
parent | [media] media: lirc_dev: merge struct irctl into struct lirc_dev (diff) | |
download | linux-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/ati_remote.c')
-rw-r--r-- | drivers/media/rc/ati_remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/ati_remote.c b/drivers/media/rc/ati_remote.c index d0871d60a723..8e82610ffaad 100644 --- a/drivers/media/rc/ati_remote.c +++ b/drivers/media/rc/ati_remote.c @@ -198,7 +198,7 @@ static const struct ati_receiver_type type_firefly = { .default_keymap = RC_MAP_SNAPSTREAM_FIREFLY }; -static struct usb_device_id ati_remote_table[] = { +static const struct usb_device_id ati_remote_table[] = { { USB_DEVICE(ATI_REMOTE_VENDOR_ID, LOLA_REMOTE_PRODUCT_ID), .driver_info = (unsigned long)&type_ati |