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:
parent
70f8f3302b
commit
1bd781e7b5
2 changed files with 27 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue