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

misc: ioc4: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Arvind Yadav and committed by
Greg Kroah-Hartman
a6dacf6a e0552573

+1 -1
+1 -1
drivers/misc/ioc4.c
··· 454 454 kfree(idd); 455 455 } 456 456 457 - static struct pci_device_id ioc4_id_table[] = { 457 + static const struct pci_device_id ioc4_id_table[] = { 458 458 {PCI_VENDOR_ID_SGI, PCI_DEVICE_ID_SGI_IOC4, PCI_ANY_ID, 459 459 PCI_ANY_ID, 0x0b4000, 0xFFFFFF}, 460 460 {0}