media: marvell-ccic: 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>
This commit is contained in:
parent
c33da628de
commit
8c8808e01a
@ -612,7 +612,7 @@ static int cafe_pci_resume(struct pci_dev *pdev)
|
||||
|
||||
#endif /* CONFIG_PM */
|
||||
|
||||
static struct pci_device_id cafe_ids[] = {
|
||||
static const struct pci_device_id cafe_ids[] = {
|
||||
{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL,
|
||||
PCI_DEVICE_ID_MARVELL_88ALP01_CCIC) },
|
||||
{ 0, }
|
||||
|
Loading…
Reference in New Issue
Block a user