power: device_pm: Remove device idle pm states

Avoid confusion with device runtime idle pm states and just use device
pm states.

This simplify the code a little bit and prepare the ground for having
a better definition of device pm states. Right now this code needed to
hijack two transitional states to not break the current code logic but
the goal is avoid it and have everything in one single place.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2021-04-28 09:48:52 -07:00 committed by Anas Nashif
commit 1bd781e7b5
2 changed files with 27 additions and 25 deletions

View file

@ -73,6 +73,24 @@ struct device;
*/
#define PM_DEVICE_OFF_STATE 5
/** @def PM_DEVICE_RESUMING_STATE
*
* @brief device is resuming to active state.
*
* @details - The device was previously suspended and is now
* transitioning to become ACTIVE.
*/
#define PM_DEVICE_RESUMING_STATE 6
/** @def PM_DEVICE_SUSPENDING_STATE
*
* @brief device is suspending.
*
* @details - The device is currently transitioning from ACTIVE
* to SUSPEND.
*/
#define PM_DEVICE_SUSPENDING_STATE 7
/* Constants defining support device power commands */
#define PM_DEVICE_STATE_SET 1
#define PM_DEVICE_STATE_GET 2