diff options
author | Arvind Yadav | 2017-08-02 19:14:57 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2017-08-09 15:50:55 +0200 |
commit | c6e3bdb8e6a1f0007c6ea1502a46552b789c79f3 (patch) | |
tree | 22b6cb4130e6f3aa383d83d038ebfcf10f0a253e /drivers/media/pci | |
parent | media: saa7146: hexium_orion: constify pci_device_id (diff) | |
download | kernel-qcow2-linux-c6e3bdb8e6a1f0007c6ea1502a46552b789c79f3.tar.gz kernel-qcow2-linux-c6e3bdb8e6a1f0007c6ea1502a46552b789c79f3.tar.xz kernel-qcow2-linux-c6e3bdb8e6a1f0007c6ea1502a46552b789c79f3.zip |
media: saa7146: hexium_gemini: constify pci_device_id
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by <media/drv-intf/saa7146.h>
and <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>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r-- | drivers/media/pci/saa7146/hexium_gemini.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/saa7146/hexium_gemini.c b/drivers/media/pci/saa7146/hexium_gemini.c index c889ec9f8a5a..f708cab01fef 100644 --- a/drivers/media/pci/saa7146/hexium_gemini.c +++ b/drivers/media/pci/saa7146/hexium_gemini.c @@ -363,7 +363,7 @@ static struct saa7146_pci_extension_data hexium_gemini_dual_4bnc = { .ext = &hexium_extension, }; -static struct pci_device_id pci_tbl[] = { +static const struct pci_device_id pci_tbl[] = { { .vendor = PCI_VENDOR_ID_PHILIPS, .device = PCI_DEVICE_ID_PHILIPS_SAA7146, |