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

agp: amd-k7: 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
b8ca53f4 ba67a31a

+2 -2
+2 -2
drivers/char/agp/amd-k7-agp.c
··· 21 21 #define AMD_TLBFLUSH 0x0c /* In mmio region (32-bit register) */ 22 22 #define AMD_CACHEENTRY 0x10 /* In mmio region (32-bit register) */ 23 23 24 - static struct pci_device_id agp_amdk7_pci_table[]; 24 + static const struct pci_device_id agp_amdk7_pci_table[]; 25 25 26 26 struct amd_page_map { 27 27 unsigned long *real; ··· 508 508 #endif /* CONFIG_PM */ 509 509 510 510 /* must be the same order as name table above */ 511 - static struct pci_device_id agp_amdk7_pci_table[] = { 511 + static const struct pci_device_id agp_amdk7_pci_table[] = { 512 512 { 513 513 .class = (PCI_CLASS_BRIDGE_HOST << 8), 514 514 .class_mask = ~0,