diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-01 18:01:50 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-08-04 08:59:46 +0200 |
commit | 84a6bf7fd78d8255f4e83cf30ce7b142e7567ed1 (patch) | |
tree | 188223957e8e03db4bf71b1672536e6d7d000903 /drivers/char/agp | |
parent | agp: amd-k7: constify pci_device_id. (diff) | |
download | linux-84a6bf7fd78d8255f4e83cf30ce7b142e7567ed1.tar.xz linux-84a6bf7fd78d8255f4e83cf30ce7b142e7567ed1.zip |
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), \ |