[PATCH net-next 0/5] net: Use pci_dev_id() to simplify the code

From
Zheng Zengkai <hidden>
Date
2023-08-11 10:55:07
PCI core API pci_dev_id() can be used to get the BDF number for a pci
device. Use the API to simplify the code.

Zheng Zengkai (5):
  et131x: Use pci_dev_id() to simplify the code
  tg3: Use pci_dev_id() to simplify the code
  net: smsc: Use pci_dev_id() to simplify the code
  net: tc35815: Use pci_dev_id() to simplify the code
  net: ngbe: use pci_dev_id() to simplify the code

 drivers/net/ethernet/agere/et131x.c           | 3 +--
 drivers/net/ethernet/broadcom/tg3.c           | 3 +--
 drivers/net/ethernet/smsc/smsc9420.c          | 3 +--
 drivers/net/ethernet/toshiba/tc35815.c        | 3 +--
 drivers/net/ethernet/wangxun/ngbe/ngbe_mdio.c | 3 +--
 5 files changed, 5 insertions(+), 10 deletions(-)

-- 
2.20.1
Thread (8 messages) 8 messages, 3 authors, last reply 2023-08-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help