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

agp: efficeon: 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
0fa02c65 11cdae9a

+1 -1
+1 -1
drivers/char/agp/efficeon-agp.c
··· 427 427 } 428 428 #endif 429 429 430 - static struct pci_device_id agp_efficeon_pci_table[] = { 430 + static const struct pci_device_id agp_efficeon_pci_table[] = { 431 431 { 432 432 .class = (PCI_CLASS_BRIDGE_HOST << 8), 433 433 .class_mask = ~0,