summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-01 19:01:50 +0300
committerDave Airlie <airlied@redhat.com>2017-08-04 09:59:46 +0300
commit84a6bf7fd78d8255f4e83cf30ce7b142e7567ed1 (patch)
tree188223957e8e03db4bf71b1672536e6d7d000903 /drivers/char
parentb8ca53f4d07a194697a14ee247c2e529fdd37ade (diff)
downloadlinux-84a6bf7fd78d8255f4e83cf30ce7b142e7567ed1.tar.xz
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>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/agp/intel-agp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c
index 0a21daed5b62..9e4f27a6cb5a 100644
--- a/drivers/char/agp/intel-agp.c
+++ b/drivers/char/agp/intel-agp.c
@@ -828,7 +828,7 @@ static int agp_intel_resume(struct pci_dev *pdev)
}
#endif
-static struct pci_device_id agp_intel_pci_table[] = {
+static const struct pci_device_id agp_intel_pci_table[] = {
#define ID(x) \
{ \
.class = (PCI_CLASS_BRIDGE_HOST << 8), \