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

agp: sis: 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: Dave Airlie <airlied@redhat.com>

authored by

Arvind Yadav and committed by
Dave Airlie
f2149f0a 0fa02c65

+1 -1
+1 -1
drivers/char/agp/sis-agp.c
··· 237 237 238 238 #endif /* CONFIG_PM */ 239 239 240 - static struct pci_device_id agp_sis_pci_table[] = { 240 + static const struct pci_device_id agp_sis_pci_table[] = { 241 241 { 242 242 .class = (PCI_CLASS_BRIDGE_HOST << 8), 243 243 .class_mask = ~0,