From: Arvind Yadav Date: Thu, 3 Aug 2017 16:22:09 +0000 (+0530) Subject: mtd: intel_vr_nor: constify pci_device_id. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4f558d636b0de9aa5d0acaf87a7f83c965ced6d7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mtd: intel_vr_nor: constify pci_device_id. pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Boris Brezillon --- diff --git a/drivers/mtd/maps/intel_vr_nor.c b/drivers/mtd/maps/intel_vr_nor.c index 8bf79775e7c1..dd5d6855f543 100644 --- a/drivers/mtd/maps/intel_vr_nor.c +++ b/drivers/mtd/maps/intel_vr_nor.c @@ -170,7 +170,7 @@ static int vr_nor_init_maps(struct vr_nor_mtd *p) return err; } -static struct pci_device_id vr_nor_pci_ids[] = { +static const struct pci_device_id vr_nor_pci_ids[] = { {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x500D)}, {0,} };