ASoC: 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: Mark Brown <broonie@kernel.org>
This commit is contained in:
Родитель
86d7ce3dd7
Коммит
67e8ee9b4b
|
@ -181,7 +181,7 @@ static void intel_sst_remove(struct pci_dev *pci)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PCI Routines */
|
/* 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},
|
{ PCI_VDEVICE(INTEL, SST_MRFLD_PCI_ID), 0},
|
||||||
{ 0, }
|
{ 0, }
|
||||||
};
|
};
|
||||||
|
|
Загрузка…
Ссылка в новой задаче