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:
parent
89a4f36fc8
commit
51df9fc8d9
1 changed files with 1 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue