media: cx23885: constify pci_device_id

pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by <linux/pci.h> work with
const pci_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>
This commit is contained in:
Arvind Yadav 2017-08-01 13:56:19 -04:00 committed by Mauro Carvalho Chehab
parent af38e42b04
commit 0fcefb39c8

View File

@ -2056,7 +2056,7 @@ static void cx23885_finidev(struct pci_dev *pci_dev)
kfree(dev); kfree(dev);
} }
static struct pci_device_id cx23885_pci_tbl[] = { static const struct pci_device_id cx23885_pci_tbl[] = {
{ {
/* CX23885 */ /* CX23885 */
.vendor = 0x14f1, .vendor = 0x14f1,