aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi/acpi_bus.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/acpi/acpi_bus.h')
-rw-r--r--include/acpi/acpi_bus.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index a8080dfe7183..a635942bcd51 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -455,8 +455,13 @@ static inline int acpi_pm_device_sleep_state(struct device *d, int *p, int m)
455#endif 455#endif
456 456
457#ifdef CONFIG_PM_RUNTIME 457#ifdef CONFIG_PM_RUNTIME
458int __acpi_device_run_wake(struct acpi_device *, bool);
458int acpi_pm_device_run_wake(struct device *, bool); 459int acpi_pm_device_run_wake(struct device *, bool);
459#else 460#else
461static inline int __acpi_device_run_wake(struct acpi_device *adev, bool en)
462{
463 return -ENODEV;
464}
460static inline int acpi_pm_device_run_wake(struct device *dev, bool enable) 465static inline int acpi_pm_device_run_wake(struct device *dev, bool enable)
461{ 466{
462 return -ENODEV; 467 return -ENODEV;
@@ -464,8 +469,14 @@ static inline int acpi_pm_device_run_wake(struct device *dev, bool enable)
464#endif 469#endif
465 470
466#ifdef CONFIG_PM_SLEEP 471#ifdef CONFIG_PM_SLEEP
472int __acpi_device_sleep_wake(struct acpi_device *, u32, bool);
467int acpi_pm_device_sleep_wake(struct device *, bool); 473int acpi_pm_device_sleep_wake(struct device *, bool);
468#else 474#else
475static inline int __acpi_device_sleep_wake(struct acpi_device *adev,
476 u32 target_state, bool enable)
477{
478 return -ENODEV;
479}
469static inline int acpi_pm_device_sleep_wake(struct device *dev, bool enable) 480static inline int acpi_pm_device_sleep_wake(struct device *dev, bool enable)
470{ 481{
471 return -ENODEV; 482 return -ENODEV;