summaryrefslogtreecommitdiff
path: root/include/acpi/acpi_bus.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-07-24 03:18:53 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-07-24 03:18:53 +0400
commit85dbb3d05ec6d063f6f8ad4d6dfc13793d566374 (patch)
treef1e8512350cf5a371e475f76673fc7cd67d211ba /include/acpi/acpi_bus.h
parent9a3c4145af32125c5ee39c0272662b47307a8323 (diff)
downloadlinux-85dbb3d05ec6d063f6f8ad4d6dfc13793d566374.tar.xz
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>
Diffstat (limited to 'include/acpi/acpi_bus.h')
0 files changed, 0 insertions, 0 deletions