diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-01 13:56:31 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-09 09:47:11 -0400 |
commit | a7c8f87d626c7100087d4576f0545537aeb9b7f6 (patch) | |
tree | d1763d42197ac5ff974606eb49765e15b42dbc40 /drivers/media/pci | |
parent | d2c43ff160e144348e5a820febb6b3c13759924d (diff) | |
download | op-kernel-dev-a7c8f87d626c7100087d4576f0545537aeb9b7f6.zip op-kernel-dev-a7c8f87d626c7100087d4576f0545537aeb9b7f6.tar.gz |
media: mantis: constify pci_device_id
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>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r-- | drivers/media/pci/mantis/mantis_cards.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/mantis/mantis_cards.c b/drivers/media/pci/mantis/mantis_cards.c index cdefffc..adc980d 100644 --- a/drivers/media/pci/mantis/mantis_cards.c +++ b/drivers/media/pci/mantis/mantis_cards.c @@ -281,7 +281,7 @@ static void mantis_pci_remove(struct pci_dev *pdev) return; } -static struct pci_device_id mantis_pci_table[] = { +static const struct pci_device_id mantis_pci_table[] = { MAKE_ENTRY(TECHNISAT, CABLESTAR_HD2, &vp2040_config, RC_MAP_TECHNISAT_TS35), MAKE_ENTRY(TECHNISAT, SKYSTAR_HD2_10, &vp1041_config, |