Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xen-platform: 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>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>

authored by

Arvind Yadav and committed by
Boris Ostrovsky
fff219d9 b4feaeb0

+1 -1
+1 -1
drivers/xen/platform-pci.c
··· 175 175 return ret; 176 176 } 177 177 178 - static struct pci_device_id platform_pci_tbl[] = { 178 + static const struct pci_device_id platform_pci_tbl[] = { 179 179 {PCI_VENDOR_ID_XEN, PCI_DEVICE_ID_XEN_PLATFORM, 180 180 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 181 181 {0,}