]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
media: dm1105: constify pci_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 1 Aug 2017 17:56:22 +0000 (13:56 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 9 Aug 2017 13:45:01 +0000 (09:45 -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/dm1105/dm1105.c

index 36e94f81aba51af59826f34e009e12f4e6301599..190ca9c17237ab16a81de431fb68b369000ab5b6 100644 (file)
@@ -1208,7 +1208,7 @@ static void dm1105_remove(struct pci_dev *pdev)
        kfree(dev);
 }
 
-static struct pci_device_id dm1105_id_table[] = {
+static const struct pci_device_id dm1105_id_table[] = {
        {
                .vendor = PCI_VENDOR_ID_TRIGEM,
                .device = PCI_DEVICE_ID_DM1105,