pm: remove incorrect usages of force suspend
Some devices are using PM_DEVICE_STATE_FORCE_SUSPEND as a sort of low power state, something that is not correct. In fact, this state is not an actual state and will be eventually moved, if found necessary, to an action or command. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
920f30cc0e
commit
c6cce80ac4
2 changed files with 1 additions and 2 deletions
|
@ -303,11 +303,11 @@ static int pwm_nrfx_set_power_state(enum pm_device_state state,
|
|||
break;
|
||||
case PM_DEVICE_STATE_LOW_POWER:
|
||||
case PM_DEVICE_STATE_SUSPEND:
|
||||
case PM_DEVICE_STATE_FORCE_SUSPEND:
|
||||
case PM_DEVICE_STATE_OFF:
|
||||
pwm_nrfx_uninit(dev);
|
||||
break;
|
||||
default:
|
||||
|
||||
__ASSERT_NO_MSG(false);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue