mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-27 18:45:21 +00:00
Fix functions return when CONFIG_PM_DEVICE_SYSTEM_MANAGED is not enabled. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
23 lines
482 B
C
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_ */
|