public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] net: Use pci_dev_id() to simplify the code
@ 2023-08-11 11:06 Zheng Zengkai
  2023-08-11 11:06 ` [PATCH net-next 1/5] et131x: " Zheng Zengkai
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Zheng Zengkai @ 2023-08-11 11:06 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, mark.einon, siva.kallam, prashant,
	mchan, steve.glendinning, mw, jiawenwu, mengyuanlou
  Cc: netdev, wangxiongfeng2, zhengzengkai

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-08-13 11:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-11 11:06 [PATCH net-next 0/5] net: Use pci_dev_id() to simplify the code Zheng Zengkai
2023-08-11 11:06 ` [PATCH net-next 1/5] et131x: " Zheng Zengkai
2023-08-11 11:06 ` [PATCH net-next 2/5] tg3: " Zheng Zengkai
2023-08-11 11:07 ` [PATCH net-next 3/5] net: smsc: " Zheng Zengkai
2023-08-11 11:07 ` [PATCH net-next 4/5] net: tc35815: " Zheng Zengkai
2023-08-11 11:07 ` [PATCH net-next 5/5] net: ngbe: use " Zheng Zengkai
2023-08-11 12:18 ` [PATCH net-next 0/5] net: Use " Przemek Kitszel
2023-08-13 11:40 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox