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

agp: intel: 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
84a6bf7f b8ca53f4

+1 -1
+1 -1
drivers/char/agp/intel-agp.c
··· 828 828 } 829 829 #endif 830 830 831 - static struct pci_device_id agp_intel_pci_table[] = { 831 + static const struct pci_device_id agp_intel_pci_table[] = { 832 832 #define ID(x) \ 833 833 { \ 834 834 .class = (PCI_CLASS_BRIDGE_HOST << 8), \