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:
Gerard Marull-Paretas 2021-07-30 11:22:27 +02:00 committed by Anas Nashif
commit c6cce80ac4
2 changed files with 1 additions and 2 deletions

View file

@ -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;
}