summaryrefslogtreecommitdiff
path: root/drivers/media/pci/saa7146
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-02 20:14:56 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-09 16:50:37 +0300
commit7ad584c0dfd36dce0d49e4e5ab30a7237888ce1e (patch)
tree5b7c70aa5b19de0f2731f09d015c712f6f799813 /drivers/media/pci/saa7146
parent34e7b45a01ef914cf6d5d49e0968ad013e221376 (diff)
downloadlinux-7ad584c0dfd36dce0d49e4e5ab30a7237888ce1e.tar.xz
media: saa7146: hexium_orion: 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/saa7146')
-rw-r--r--drivers/media/pci/saa7146/hexium_orion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/saa7146/hexium_orion.c b/drivers/media/pci/saa7146/hexium_orion.c
index c306a92e8909..01f01580c7ca 100644
--- a/drivers/media/pci/saa7146/hexium_orion.c
+++ b/drivers/media/pci/saa7146/hexium_orion.c
@@ -427,7 +427,7 @@ static struct saa7146_pci_extension_data hexium_orion_4bnc = {
.ext = &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,