aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-11-01 20:40:53 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-11-14 18:15:18 -0500
commita6ae7594b1b157e0e7976ed105a7be27d69a5361 (patch)
treead9d2fdca3d7a20335d29498101917eb8fc8782b /include/acpi
parent078eb12648c2f8bba48921f60ec2cec3e1bbc051 (diff)
ACPI / PM: Move device PM functions related to sleep states
Introduce helper function returning the target sleep state of the system and use it to move the remaining device power management functions from sleep.c to device_pm.c. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/acpi_bus.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 35812b6e0427..bf8709a1844d 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -470,9 +470,11 @@ static inline int acpi_pm_device_run_wake(struct device *dev, bool enable)
470#endif 470#endif
471 471
472#ifdef CONFIG_PM_SLEEP 472#ifdef CONFIG_PM_SLEEP
473u32 acpi_target_system_state(void);
473int __acpi_device_sleep_wake(struct acpi_device *, u32, bool); 474int __acpi_device_sleep_wake(struct acpi_device *, u32, bool);
474int acpi_pm_device_sleep_wake(struct device *, bool); 475int acpi_pm_device_sleep_wake(struct device *, bool);
475#else 476#else
477static inline u32 acpi_target_system_state(void) { return ACPI_STATE_S0; }
476static inline int __acpi_device_sleep_wake(struct acpi_device *adev, 478static inline int __acpi_device_sleep_wake(struct acpi_device *adev,
477 u32 target_state, bool enable) 479 u32 target_state, bool enable)
478{ 480{