diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-03 19:22:09 +0300 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-08-15 15:00:46 +0300 |
commit | 4f558d636b0de9aa5d0acaf87a7f83c965ced6d7 (patch) | |
tree | d753be91985f6d1d548534bba3e4320d0dc1a0bf /drivers/mtd/maps/intel_vr_nor.c | |
parent | 1372734425529cdb11940eb06cd1cc864e88da12 (diff) | |
download | linux-4f558d636b0de9aa5d0acaf87a7f83c965ced6d7.tar.xz |
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 <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: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/maps/intel_vr_nor.c')
-rw-r--r-- | drivers/mtd/maps/intel_vr_nor.c | 2 |
1 files changed, 1 insertions, 1 deletions
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,} }; |