diff --git a/include/pm/pm.h b/include/pm/pm.h index e4dc56af744..099f6eb4c4c 100644 --- a/include/pm/pm.h +++ b/include/pm/pm.h @@ -77,7 +77,7 @@ struct pm_notifier { * @param info Power state which should be used in the ongoing * suspend operation. */ -bool pm_power_state_force(uint8_t cpu, const struct pm_state_info *info); +bool pm_state_force(uint8_t cpu, const struct pm_state_info *info); /** * @brief Register a power management notifier diff --git a/samples/boards/nrf/system_off/src/main.c b/samples/boards/nrf/system_off/src/main.c index 4ae20b809b6..683cc366413 100644 --- a/samples/boards/nrf/system_off/src/main.c +++ b/samples/boards/nrf/system_off/src/main.c @@ -91,7 +91,7 @@ void main(void) * controlled delay. Here we need to override that, then * force entry to deep sleep on any delay. */ - pm_power_state_force(0u, &(struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0}); + pm_state_force(0u, &(struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0}); printk("ERROR: System off failed\n"); while (true) { diff --git a/samples/boards/stm32/power_mgmt/stm32wb_ble/src/main.c b/samples/boards/stm32/power_mgmt/stm32wb_ble/src/main.c index c96b5926fb6..9a2273f6b37 100644 --- a/samples/boards/stm32/power_mgmt/stm32wb_ble/src/main.c +++ b/samples/boards/stm32/power_mgmt/stm32wb_ble/src/main.c @@ -118,5 +118,5 @@ void main(void) printk("Device shutdown\n"); - pm_power_state_force(0u, &(struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0}); + pm_state_force(0u, &(struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0}); } diff --git a/samples/boards/ti/cc13x2_cc26x2/system_off/src/main.c b/samples/boards/ti/cc13x2_cc26x2/system_off/src/main.c index 4b6fef43394..1aa6f3ae77e 100644 --- a/samples/boards/ti/cc13x2_cc26x2/system_off/src/main.c +++ b/samples/boards/ti/cc13x2_cc26x2/system_off/src/main.c @@ -67,7 +67,7 @@ void main(void) /* * Force the SOFT_OFF state. */ - pm_power_state_force(0u, &(struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0}); + pm_state_force(0u, &(struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0}); printk("ERROR: System off failed\n"); while (true) { diff --git a/subsys/pm/pm.c b/subsys/pm/pm.c index 7cc65e49d68..70dd7ddc13c 100644 --- a/subsys/pm/pm.c +++ b/subsys/pm/pm.c @@ -180,7 +180,7 @@ void pm_system_resume(void) } } -bool pm_power_state_force(uint8_t cpu, const struct pm_state_info *info) +bool pm_state_force(uint8_t cpu, const struct pm_state_info *info) { bool ret = false;