summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-10-13 00:36:05 +0300
committerBjorn Helgaas <bhelgaas@google.com>2021-10-18 17:20:15 +0300
commit97918f794027a844e7f6e3ae7acdd22ac9055b18 (patch)
tree1849c866f72967a114ceb43a6b646525475cc036 /tools/perf/scripts/python/export-to-sqlite.py
parent16bd44e54dfba2a403833d11acea63e186de23c6 (diff)
downloadlinux-97918f794027a844e7f6e3ae7acdd22ac9055b18.tar.xz
usb: xhci: 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 pdev->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 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions