diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-10-12 16:11:24 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2021-10-18 09:20:15 -0500 |
commit | 2a4d9408c9e8b6f6fc150c66f3fef755c9e20d4a (patch) | |
tree | 199c2d2274b02bbb5e702ba124565c868fd1e069 /include/linux/pci.h | |
parent | d98d53331b727838122bc80e1898c4e1fc201fb0 (diff) | |
download | lwn-2a4d9408c9e8b6f6fc150c66f3fef755c9e20d4a.tar.gz lwn-2a4d9408c9e8b6f6fc150c66f3fef755c9e20d4a.zip |
PCI: Use to_pci_driver() instead of pci_dev->driver
Struct pci_driver contains a struct device_driver, so for PCI devices, it's
easy to convert a device_driver * to a pci_driver * with to_pci_driver().
The device_driver * is in struct device, so we don't need to also keep
track of the pci_driver * in struct pci_dev.
Replace pci_dev->driver with to_pci_driver(). This is a step toward
removing pci_dev->driver.
[bhelgaas: split to separate patch]
Link: https://lore.kernel.org/r/20211004125935.2300113-11-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci.h')
0 files changed, 0 insertions, 0 deletions