pm: Rename pm_power_state_force

Aligning with the rest of PM API, replace pm_power_state_force with
pm_state_force.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2022-02-05 21:07:37 -08:00 committed by Anas Nashif
commit 6142fcb8ba
5 changed files with 5 additions and 5 deletions

View file

@ -77,7 +77,7 @@ struct pm_notifier {
* @param info Power state which should be used in the ongoing * @param info Power state which should be used in the ongoing
* suspend operation. * 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 * @brief Register a power management notifier

View file

@ -91,7 +91,7 @@ void main(void)
* controlled delay. Here we need to override that, then * controlled delay. Here we need to override that, then
* force entry to deep sleep on any delay. * 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"); printk("ERROR: System off failed\n");
while (true) { while (true) {

View file

@ -118,5 +118,5 @@ void main(void)
printk("Device shutdown\n"); 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});
} }

View file

@ -67,7 +67,7 @@ void main(void)
/* /*
* Force the SOFT_OFF state. * 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"); printk("ERROR: System off failed\n");
while (true) { while (true) {

View file

@ -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; bool ret = false;