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:
parent
ef91546a51
commit
0aa3df06c2
2 changed files with 8 additions and 8 deletions
|
@ -25,14 +25,6 @@ extern "C" {
|
||||||
|
|
||||||
#ifdef CONFIG_PM_DEVICE_IDLE
|
#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
|
* @brief Enable device idle PM
|
||||||
*
|
*
|
||||||
|
|
|
@ -14,6 +14,14 @@
|
||||||
#include <logging/log.h>
|
#include <logging/log.h>
|
||||||
LOG_MODULE_DECLARE(power);
|
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 */
|
/* Device PM request type */
|
||||||
#define DEVICE_PM_SYNC (0 << 0)
|
#define DEVICE_PM_SYNC (0 << 0)
|
||||||
#define DEVICE_PM_ASYNC (1 << 0)
|
#define DEVICE_PM_ASYNC (1 << 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue