summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-07-16 16:05:13 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-07-21 16:59:46 +0200
commit1c24aa1bb2006d56d4783a9870bba260392edcf7 (patch)
treecf063efa475ea448a5e46f7f2760ff26b06b7577 /tools/perf/scripts/python/stackcollapse.py
parent2e8c155fe8bf552a4c55dc42f19da78ed2213e39 (diff)
ACPI: video: Use acpi_dev_get_pci_dev() instead of acpi_get_pci_dev()
In acpi_video_bus_check() and find_video(), simply replace acpi_get_pci_dev() with acpi_dev_get_pci_dev() that can be used in both places because the ACPI device needed to do the lookup is available. In acpi_video_dev_register_backlight(), instead of doing a parent ACPI handle lookup based on the handle of an ACPI device that is already available, pass that ACPI device to acpi_dev_parent() which is much more straightforward and pass the return value of the latter directly to acpi_dev_get_pci_dev() to get the PCI device associated with it. That allows local variable acpi_parent to be eliminated. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/2047771.PYKUYFuaPT@rafael.j.wysocki
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions