Thread (16 messages) 16 messages, 5 authors, 2021-09-29

Re: [PATCH v4 4/8] PCI: replace pci_dev::driver usage that gets the driver name

From: Bjorn Helgaas <helgaas@kernel.org>
Date: 2021-09-28 20:08:20
Also in: linux-pci, linux-wireless, linuxppc-dev, lkml, netdev

On Tue, Sep 28, 2021 at 09:29:36PM +0200, Uwe Kleine-König wrote:
On Tue, Sep 28, 2021 at 12:17:59PM -0500, Bjorn Helgaas wrote:
quoted
[+to Oliver, Russell for eeh_driver_name() question below]

On Mon, Sep 27, 2021 at 10:43:22PM +0200, Uwe Kleine-König wrote:
quoted
From: Uwe Kleine-König <redacted>

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.
quoted
Also, would you mind using "pci_dev.driver" instead of
"pci_dev::driver"?  AFAIK, the "::" operator is not actually part of
C, so I think it's more confusing than useful.
pci_dev.driver doesn't work either in C because pci_dev is a type and
not a variable.
Sure, "pci_dev.driver" is not strictly acceptable C unless you have a
"struct pci_dev pci_dev", but it's pretty common.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help