diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2023-11-21 14:34:28 +0200 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2023-12-12 12:21:29 -0800 |
commit | bf88f7d920da2bbabef16404a449a4f72cc0ffcd (patch) | |
tree | 13bbce7f8136b427db7634acb5776919e07fa8b1 /drivers/net/ethernet/intel/e1000e/defines.h | |
parent | 4c39e76846b2500910b5378b1e868e6c4d5e6df8 (diff) | |
download | linux-bf88f7d920da2bbabef16404a449a4f72cc0ffcd.tar.gz linux-bf88f7d920da2bbabef16404a449a4f72cc0ffcd.tar.bz2 linux-bf88f7d920da2bbabef16404a449a4f72cc0ffcd.zip |
e1000e: Use pcie_capability_read_word() for reading LNKSTA
Use pcie_capability_read_word() for reading LNKSTA and remove the
custom define that matches to PCI_EXP_LNKSTA.
As only single user for cap_offset remains, replace it with a call to
pci_pcie_cap(). Instead of e1000_adapter, make local variable out of
pci_dev because both users are interested in it.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Naama Meir <naamax.meir@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/e1000e/defines.h')
-rw-r--r-- | drivers/net/ethernet/intel/e1000e/defines.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/defines.h b/drivers/net/ethernet/intel/e1000e/defines.h index a4d29c9e03a6..23a58cada43a 100644 --- a/drivers/net/ethernet/intel/e1000e/defines.h +++ b/drivers/net/ethernet/intel/e1000e/defines.h @@ -678,7 +678,6 @@ /* PCI/PCI-X/PCI-EX Config space */ #define PCI_HEADER_TYPE_REGISTER 0x0E -#define PCIE_LINK_STATUS 0x12 #define PCI_HEADER_TYPE_MULTIFUNC 0x80 |