soc: arm: st_stm32: stm32u5: fix pm_power_state_set

Some PM cases were not handled correctly (missing default statement).
The error was caught by CI while doing other PM related work.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-11-26 17:10:47 +01:00 committed by Carles Cufí
commit 51df9fc8d9

View file

@ -76,14 +76,7 @@ __weak void pm_power_state_set(struct pm_state_info info)
case PM_STATE_SOFT_OFF:
set_mode_shutdown(info.substate_id);
break;
/* Following states are not supported */
case PM_STATE_RUNTIME_IDLE:
__fallthrough;
case PM_STATE_ACTIVE:
__fallthrough;
case PM_STATE_SUSPEND_TO_RAM:
__fallthrough;
case PM_STATE_SUSPEND_TO_DISK:
default:
LOG_DBG("Unsupported power state %u", info.state);
return;
}