diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-02 13:14:50 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-09 09:48:35 -0400 |
commit | 63dcbcff0ef851c725b4f0199dc1ae3a03d90c42 (patch) | |
tree | 6ad1b13dae25c6c46d9c5824c5460b2760493153 /drivers/media/pci/ttpci/budget.c | |
parent | af74030591c13331760fe66246338f64ded3f76f (diff) | |
download | linux-stable-63dcbcff0ef851c725b4f0199dc1ae3a03d90c42.tar.gz linux-stable-63dcbcff0ef851c725b4f0199dc1ae3a03d90c42.tar.bz2 linux-stable-63dcbcff0ef851c725b4f0199dc1ae3a03d90c42.zip |
media: ttpci: budget: 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/ttpci/budget.c')
-rw-r--r-- | drivers/media/pci/ttpci/budget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/ttpci/budget.c b/drivers/media/pci/ttpci/budget.c index 81fe35cedd10..f59eadb7a5eb 100644 --- a/drivers/media/pci/ttpci/budget.c +++ b/drivers/media/pci/ttpci/budget.c @@ -845,7 +845,7 @@ MAKE_BUDGET_INFO(fsact1, "Fujitsu Siemens Activy Budget-T PCI (rev AL/ALPS TDHD1 MAKE_BUDGET_INFO(omicom, "Omicom S2 PCI", BUDGET_TT); MAKE_BUDGET_INFO(sylt, "Philips Semi Sylt PCI", BUDGET_TT_HW_DISEQC); -static struct pci_device_id pci_tbl[] = { +static const struct pci_device_id pci_tbl[] = { MAKE_EXTENSION_PCI(ttbs, 0x13c2, 0x1003), MAKE_EXTENSION_PCI(ttbc, 0x13c2, 0x1004), MAKE_EXTENSION_PCI(ttbt, 0x13c2, 0x1005), |