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:
parent
89fee61b43
commit
6142fcb8ba
5 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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});
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue