aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-10-26 07:40:04 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-11-14 18:15:16 -0500
commitbdda27fb98463244f056852f800bbce7db67dc4a (patch)
tree2f9199944d42fa6f6b6aa2604a961ec4ac168147 /include/acpi
parentdea553e3fc63c5e53a3f8741f0c9f840660cf06e (diff)
ACPI / PM: Fix device PM kernedoc comments and #ifdefs
The kerneldoc comments for acpi_pm_device_sleep_state(), acpi_pm_device_run_wake(), and acpi_pm_device_sleep_wake() are outdated or otherwise inaccurate and/or don't follow the common kerneldoc patterns, so fix them. Additionally, notice that acpi_pm_device_run_wake() should be under CONFIG_PM_RUNTIME rather than under CONFIG_PM_SLEEP, so fix that too. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/acpi_bus.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 0daa0fbd8654..72053db9c2ec 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -426,14 +426,18 @@ static inline int acpi_pm_device_sleep_state(struct device *d, int *p, int m)
426} 426}
427#endif 427#endif
428 428
429#ifdef CONFIG_PM_SLEEP 429#ifdef CONFIG_PM_RUNTIME
430int acpi_pm_device_run_wake(struct device *, bool); 430int acpi_pm_device_run_wake(struct device *, bool);
431int acpi_pm_device_sleep_wake(struct device *, bool);
432#else 431#else
433static inline int acpi_pm_device_run_wake(struct device *dev, bool enable) 432static inline int acpi_pm_device_run_wake(struct device *dev, bool enable)
434{ 433{
435 return -ENODEV; 434 return -ENODEV;
436} 435}
436#endif
437
438#ifdef CONFIG_PM_SLEEP
439int acpi_pm_device_sleep_wake(struct device *, bool);
440#else
437static inline int acpi_pm_device_sleep_wake(struct device *dev, bool enable) 441static inline int acpi_pm_device_sleep_wake(struct device *dev, bool enable)
438{ 442{
439 return -ENODEV; 443 return -ENODEV;