]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / PCI: Use ACPI_COMPANION() instead of ACPI_HANDLE()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 23 Jul 2014 23:18:53 +0000 (01:18 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 23 Jul 2014 23:18:53 +0000 (01:18 +0200)
commit760ebd67aac0fbe21391372b5274b97a1fd05b14
treef1e8512350cf5a371e475f76673fc7cd67d211ba
parent524b1d071ee32d3981cf3ce0e68cbaa8e4849c62
ACPI / PCI: Use ACPI_COMPANION() instead of ACPI_HANDLE()

The ACPI_HANDLE() macro evaluates ACPI_COMPANION() internally to
return the handle of the device's ACPI companion, so it is much
more straightforward and efficient to use ACPI_COMPANION()
directly to obtain the device's ACPI companion object instead of
using ACPI_HANDLE() and acpi_bus_get_device() on the returned
handle for the same thing.

Use ACPI_COMPANION() instead of ACPI_HANDLE() in the PCI ACPI support
code.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/pci-acpi.c