# \[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 
- List: netdev
- Page: https://ratatoskr.run/netdev/2023/08/11269137
- Thread: https://ratatoskr.run/netdev/2023/08/11269137/t.md

```text
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

```
