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 3a0b3bf0af97f71ea4eb7c5235aceaeca8c218b8..6906ee624cf6f4e16caa6456fdad8e80ed03cd4e 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, }
 };