Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4460eb52 authored by Jiang Liu's avatar Jiang Liu Committed by Bjorn Helgaas
Browse files

iwlegacy: Use PCI Express Capability accessors



Use PCI Express Capability access functions to simplify iwlegacy driver.

[bhelgaas: split iwlegacy, iwlwifi, rtlwifi into separate patches]
Signed-off-by: default avatarJiang Liu <jiang.liu@huawei.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 08bd1080
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1832,10 +1832,8 @@ int il_enqueue_hcmd(struct il_priv *il, struct il_host_cmd *cmd);
static inline u16
il_pcie_link_ctl(struct il_priv *il)
{
	int pos;
	u16 pci_lnk_ctl;
	pos = pci_pcie_cap(il->pci_dev);
	pci_read_config_word(il->pci_dev, pos + PCI_EXP_LNKCTL, &pci_lnk_ctl);
	pcie_capability_read_word(il->pci_dev, PCI_EXP_LNKCTL, &pci_lnk_ctl);
	return pci_lnk_ctl;
}