diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-01 21:31:50 +0530 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-08-04 16:59:46 +1000 |
commit | 84a6bf7fd78d8255f4e83cf30ce7b142e7567ed1 (patch) | |
tree | 188223957e8e03db4bf71b1672536e6d7d000903 /drivers/char/agp | |
parent | b8ca53f4d07a194697a14ee247c2e529fdd37ade (diff) |
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/agp')
-rw-r--r-- | drivers/char/agp/intel-agp.c | 2 |
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), \ |