summaryrefslogtreecommitdiff
path: root/drivers/pci/pci-acpi.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-07-22 23:03:06 (GMT)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-07-22 23:03:06 (GMT)
commite70dba6020eaaceb1d3619dfb535c719900c7091 (patch)
tree9b23819ba984bbe382c3650f19f523b8a195de16 /drivers/pci/pci-acpi.c
parentf1b1dc845cb1418b2b0de35491b0da87498ea6a8 (diff)
downloadlinux-e70dba6020eaaceb1d3619dfb535c719900c7091.tar.xz
ACPI / PNP: 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. Do that in several places in the ACPI PNP core code. Also use acpi_device_set_power() and acpi_device_power_manageable() instead of acpi_bus_set_power() and acpi_bus_power_manageable(), respectively, because the former two are more efficient if the ACPI device object is already available. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/pci/pci-acpi.c')
0 files changed, 0 insertions, 0 deletions