]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
media: b2c2: constify pci_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 1 Aug 2017 17:56:28 +0000 (13:56 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 9 Aug 2017 13:46:30 +0000 (09:46 -0400)
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>
drivers/media/pci/b2c2/flexcop-pci.c

index 6e60decb2198b407bd963fed4925b64f767b489f..cc6527e3553732ce4bb2b74a257c65ae2939b8da 100644 (file)
@@ -415,7 +415,7 @@ static void flexcop_pci_remove(struct pci_dev *pdev)
        flexcop_device_kfree(fc_pci->fc_dev);
 }
 
-static struct pci_device_id flexcop_pci_tbl[] = {
+static const struct pci_device_id flexcop_pci_tbl[] = {
        { PCI_DEVICE(0x13d0, 0x2103) },
        { },
 };