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

agp: ali: 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
e4e22911 84a6bf7f

+1 -1
+1 -1
drivers/char/agp/ali-agp.c
··· 381 381 agp_put_bridge(bridge); 382 382 } 383 383 384 - static struct pci_device_id agp_ali_pci_table[] = { 384 + static const struct pci_device_id agp_ali_pci_table[] = { 385 385 { 386 386 .class = (PCI_CLASS_BRIDGE_HOST << 8), 387 387 .class_mask = ~0,