zephyr/subsys/pm/device_system_managed.h
Flavio Ceolin 836c2ccfd4 pm: device_system_managed: Fix functions return
Fix functions return when CONFIG_PM_DEVICE_SYSTEM_MANAGED is
not enabled.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-06-18 19:56:39 -04:00

23 lines
482 B
C

/*
* Copyright (c) 2024 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_SUBSYS_PM_DEVICE_SYSTEM_MANAGED_H_
#define ZEPHYR_SUBSYS_PM_DEVICE_SYSTEM_MANAGED_H_
#ifdef CONFIG_PM_DEVICE_SYSTEM_MANAGED
bool pm_suspend_devices(void);
void pm_resume_devices(void);
#else
bool pm_suspend_devices(void) { return true; }
void pm_resume_devices(void) {}
#endif /* CONFIG_PM_DEVICE_SYSTEM_MANAGED */
#endif /* ZEPHYR_SUBSYS_PM_DEVICE_SYSTEM_MANAGED_H_ */