Re: [PATCH v5 07/11] PCI: Replace pci_dev::driver usage that gets the driver name

From
Simon Horman <hidden>
Date
2021-09-29 10:17:39
Also in
linux-crypto, linux-pci, linuxppc-dev, lkml, netdev
Reply to
Uwe Kleine-König, 2021-09-29
On Wed, Sep 29, 2021 at 10:53:02AM +0200, Uwe Kleine-König wrote:
struct pci_dev::driver holds (apart from a constant offset) the same
data as struct pci_dev::dev->driver. With the goal to remove struct
pci_dev::driver to get rid of data duplication replace getting the
driver name by dev_driver_string() which implicitly makes use of struct
pci_dev::dev->driver.

Signed-off-by: Uwe Kleine-König <redacted>
---
 drivers/crypto/hisilicon/qm.c                        | 2 +-
 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c   | 2 +-
 drivers/net/ethernet/marvell/prestera/prestera_pci.c | 2 +-
 drivers/net/ethernet/mellanox/mlxsw/pci.c            | 2 +-
 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c | 3 ++-
 5 files changed, 6 insertions(+), 5 deletions(-)
Thanks Uwe.

For NFP:

Acked-by: Simon Horman <redacted>
Thread (8 messages) 8 messages, 5 authors, last reply 2021-09-29
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