summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/internal.h
diff options
context:
space:
mode:
authorAaron Lu <aaron.lu@intel.com>2013-11-19 08:43:52 +0100
committerZhang Rui <rui.zhang@intel.com>2014-10-10 07:57:12 +0200
commit2bb3a2bf9939f3361e25045f4ef7b136b864c3b8 (patch)
treed4132de91d6589e9c641e52023f90fceee8b8cb6 /drivers/acpi/internal.h
parentACPI / fan: remove no need check for device pointer (diff)
downloadlinux-2bb3a2bf9939f3361e25045f4ef7b136b864c3b8.tar.xz
linux-2bb3a2bf9939f3361e25045f4ef7b136b864c3b8.zip
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>
Diffstat (limited to 'drivers/acpi/internal.h')
-rw-r--r--drivers/acpi/internal.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h
index f221d1eb594a..447f6d679b29 100644
--- a/drivers/acpi/internal.h
+++ b/drivers/acpi/internal.h
@@ -104,8 +104,6 @@ int acpi_power_get_inferred_state(struct acpi_device *device, int *state);
int acpi_power_on_resources(struct acpi_device *device, int state);
int acpi_power_transition(struct acpi_device *device, int state);
-int acpi_device_update_power(struct acpi_device *device, int *state_p);
-
int acpi_wakeup_device_init(void);
#ifdef CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC