Re: [PATCH v2 2/4] ACPI: PCI: Introduce acpi_dev_get_pci_dev()
Andy Shevchenko <[email protected]>
| Newsgroups | org.kernel.vger.linux-acpi,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pci |
|---|---|
| Organization | Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo |
| Message-ID | <[email protected]> |
On Thu, Jul 16, 2026 at 04:04:53PM +0200, Rafael J. Wysocki wrote: > Some acpi_get_pci_dev() callers already have a struct ACPI device for > which they want to get the struct pci_dev pointer of the associated > PCI device, so they don't need to look for one. > > For this reason, add acpi_dev_get_pci_dev() that will get a PCI device > for a given ACPI one (if possible) and turn acpi_get_pci_dev() into > a static inline helper passing the acpi_fetch_acpi_dev() return value > directly to acpi_dev_get_pci_dev(). > > No intentional functional impact. Reviewed-by: Andy Shevchenko <[email protected]> -- With Best Regards, Andy Shevchenko