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

From
Przemek Kitszel <przemyslaw.kitszel@intel.com>
Date
2023-08-11 12:20:11
Reply to
Zheng Zengkai, 2023-08-11
On 8/11/23 13:06, Zheng Zengkai wrote:
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(-)
code looks fine,
I wonder if it would be better to have just one patch here?
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