]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
media: marvell-ccic: constify pci_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 1 Aug 2017 17:56:17 +0000 (13:56 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 9 Aug 2017 13:43:15 +0000 (09:43 -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/platform/marvell-ccic/cafe-driver.c

index 063fd43f8539822dc487ab6e96dc96c9013e5a0f..57d2c483ad0973f16db640ffd55e6702b8b4b971 100644 (file)
@@ -612,7 +612,7 @@ static int cafe_pci_resume(struct pci_dev *pdev)
 
 #endif  /* CONFIG_PM */
 
-static struct pci_device_id cafe_ids[] = {
+static const struct pci_device_id cafe_ids[] = {
        { PCI_DEVICE(PCI_VENDOR_ID_MARVELL,
                     PCI_DEVICE_ID_MARVELL_88ALP01_CCIC) },
        { 0, }