net: qtnfmac: 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> Reviewed-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
9ff067ff4c
commit
cc5becd38e
|
@ -1310,7 +1310,7 @@ static SIMPLE_DEV_PM_OPS(qtnf_pcie_pm_ops, qtnf_pcie_suspend,
|
|||
qtnf_pcie_resume);
|
||||
#endif
|
||||
|
||||
static struct pci_device_id qtnf_pcie_devid_table[] = {
|
||||
static const struct pci_device_id qtnf_pcie_devid_table[] = {
|
||||
{
|
||||
PCIE_VENDOR_ID_QUANTENNA, PCIE_DEVICE_ID_QTN_PEARL,
|
||||
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
||||
|
|
Loading…
Reference in New Issue