OSDN Git Service

ASoC: Intel: constify pci_device_id.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 3 Aug 2017 17:50:01 +0000 (23:20 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 4 Aug 2017 10:18:55 +0000 (11:18 +0100)
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: Mark Brown <broonie@kernel.org>
sound/soc/intel/atom/sst/sst_pci.c

index 3a0b3bf..6906ee6 100644 (file)
@@ -181,7 +181,7 @@ static void intel_sst_remove(struct pci_dev *pci)
 }
 
 /* PCI Routines */
-static struct pci_device_id intel_sst_ids[] = {
+static const struct pci_device_id intel_sst_ids[] = {
        { PCI_VDEVICE(INTEL, SST_MRFLD_PCI_ID), 0},
        { 0, }
 };