Skip to content

Commit cc5becd

Browse files
ArvindYadavCsKalle Valo
authored andcommitted
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 <[email protected]> Reviewed-by: Sergey Matyukevich <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent 9ff067f commit cc5becd

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/wireless/quantenna/qtnfmac/pearl

1 file changed

+1
-1
lines changed

drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,7 @@ static SIMPLE_DEV_PM_OPS(qtnf_pcie_pm_ops, qtnf_pcie_suspend,
13101310
qtnf_pcie_resume);
13111311
#endif
13121312

1313-
static struct pci_device_id qtnf_pcie_devid_table[] = {
1313+
static const struct pci_device_id qtnf_pcie_devid_table[] = {
13141314
{
13151315
PCIE_VENDOR_ID_QUANTENNA, PCIE_DEVICE_ID_QTN_PEARL,
13161316
PCI_ANY_ID, PCI_ANY_ID, 0, 0,

0 commit comments

Comments
 (0)