power: Rename constraint API

Replace pm_ctrl_* with pm_constraint.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2021-01-25 18:03:08 -08:00 committed by Anas Nashif
commit 3f87c5a0f4
13 changed files with 29 additions and 29 deletions

View file

@ -208,7 +208,7 @@ static int i2c_cc13xx_cc26xx_transfer(const struct device *dev,
k_sem_take(&get_dev_data(dev)->lock, K_FOREVER);
#ifdef CONFIG_PM
pm_ctrl_disable_state(PM_STATE_STANDBY);
pm_constraint_set(PM_STATE_STANDBY);
#endif
for (int i = 0; i < num_msgs; i++) {
@ -232,7 +232,7 @@ static int i2c_cc13xx_cc26xx_transfer(const struct device *dev,
}
#ifdef CONFIG_PM
pm_ctrl_enable_state(PM_STATE_STANDBY);
pm_constraint_release(PM_STATE_STANDBY);
#endif
k_sem_give(&get_dev_data(dev)->lock);