diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-03 21:52:10 +0530 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-08-15 14:00:46 +0200 |
commit | d64dc9c8470da1582bf0d853c8a4ae05ad31815b (patch) | |
tree | 1e8c0a3f7a8012a29496098baa3b4ebcf8c87961 /drivers/mtd/maps | |
parent | 4f558d636b0de9aa5d0acaf87a7f83c965ced6d7 (diff) | |
download | linux-d64dc9c8470da1582bf0d853c8a4ae05ad31815b.tar.gz linux-d64dc9c8470da1582bf0d853c8a4ae05ad31815b.tar.bz2 linux-d64dc9c8470da1582bf0d853c8a4ae05ad31815b.zip |
mtd: pci: 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')
-rw-r--r-- | drivers/mtd/maps/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/pci.c b/drivers/mtd/maps/pci.c index eb0242e0b2d9..7b3bb40aff72 100644 --- a/drivers/mtd/maps/pci.c +++ b/drivers/mtd/maps/pci.c @@ -228,7 +228,7 @@ static struct mtd_pci_info intel_dc21285_info = { * PCI device ID table */ -static struct pci_device_id mtd_pci_ids[] = { +static const struct pci_device_id mtd_pci_ids[] = { { .vendor = PCI_VENDOR_ID_INTEL, .device = 0x530d, |