]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / fan: use acpi_device_xxx_power instead of acpi_bus equivelant
authorAaron Lu <aaron.lu@intel.com>
Tue, 19 Nov 2013 07:43:52 +0000 (15:43 +0800)
committerZhang Rui <rui.zhang@intel.com>
Fri, 10 Oct 2014 05:57:12 +0000 (13:57 +0800)
commit4cfcf874659c14922117b66bf6170f1d4bececfc
treed4132de91d6589e9c641e52023f90fceee8b8cb6
parenteb2b345b4723e57d3148d91c7ce934770bec37d4
ACPI / fan: use acpi_device_xxx_power instead of acpi_bus equivelant

When we have the acpi_device pointer, there is no need to pass the
device's handle to the acpi_bus_xxx_power functions to get/set/update
the device's power state, instead, use the acpi_device_xxx_power
functions directly.

To make this happen for fan module, export acpi_device_update_power.

Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/acpi/device_pm.c
drivers/acpi/fan.c
drivers/acpi/internal.h
include/acpi/acpi_bus.h