diff --git a/include/pm/pm.h b/include/pm/pm.h index 9c096d7792c..ae8951cb8ef 100644 --- a/include/pm/pm.h +++ b/include/pm/pm.h @@ -111,7 +111,7 @@ int pm_notifier_unregister(struct pm_notifier *notifier); * @param cpu CPU index. * @return next pm_state_info that will be used */ -const struct pm_state_info pm_power_state_next_get(uint8_t cpu); +struct pm_state_info pm_power_state_next_get(uint8_t cpu); /** * @} diff --git a/subsys/pm/pm.c b/subsys/pm/pm.c index 84784d122f5..0dc09130439 100644 --- a/subsys/pm/pm.c +++ b/subsys/pm/pm.c @@ -294,7 +294,7 @@ int pm_notifier_unregister(struct pm_notifier *notifier) return ret; } -const struct pm_state_info pm_power_state_next_get(uint8_t cpu) +struct pm_state_info pm_power_state_next_get(uint8_t cpu) { return z_power_states[cpu]; }