Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fff219d9 authored by Arvind Yadav's avatar Arvind Yadav Committed by Boris Ostrovsky
Browse files

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: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Reviewed-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
parent b4feaeb0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -175,7 +175,7 @@ static int platform_pci_probe(struct pci_dev *pdev,
	return ret;
}

static struct pci_device_id platform_pci_tbl[] = {
static const struct pci_device_id platform_pci_tbl[] = {
	{PCI_VENDOR_ID_XEN, PCI_DEVICE_ID_XEN_PLATFORM,
		PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
	{0,}