pm: move private enum to source using it

`enum device_pm_state` is not used publicly, so move it to the source
using it.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-04-29 13:59:53 +02:00 committed by Anas Nashif
commit 0aa3df06c2
2 changed files with 8 additions and 8 deletions

View file

@ -25,14 +25,6 @@ extern "C" {
#ifdef CONFIG_PM_DEVICE_IDLE
/* Device PM states */
enum device_pm_state {
DEVICE_PM_STATE_ACTIVE = 1,
DEVICE_PM_STATE_SUSPENDED,
DEVICE_PM_STATE_SUSPENDING,
DEVICE_PM_STATE_RESUMING,
};
/**
* @brief Enable device idle PM
*

View file

@ -14,6 +14,14 @@
#include <logging/log.h>
LOG_MODULE_DECLARE(power);
/* Device PM states */
enum device_pm_state {
DEVICE_PM_STATE_ACTIVE = 1,
DEVICE_PM_STATE_SUSPENDED,
DEVICE_PM_STATE_SUSPENDING,
DEVICE_PM_STATE_RESUMING,
};
/* Device PM request type */
#define DEVICE_PM_SYNC (0 << 0)
#define DEVICE_PM_ASYNC (1 << 0)