power: Rename constraint API
Replace pm_ctrl_* with pm_constraint. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
ea4bc728f4
commit
3f87c5a0f4
13 changed files with 29 additions and 29 deletions
|
@ -149,7 +149,7 @@ static int spi_cc13xx_cc26xx_transceive(const struct device *dev,
|
|||
spi_context_lock(ctx, false, NULL, config);
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
pm_ctrl_disable_state(PM_STATE_STANDBY);
|
||||
pm_constraint_set(PM_STATE_STANDBY);
|
||||
#endif
|
||||
|
||||
err = spi_cc13xx_cc26xx_configure(dev, config);
|
||||
|
@ -185,7 +185,7 @@ static int spi_cc13xx_cc26xx_transceive(const struct device *dev,
|
|||
|
||||
done:
|
||||
#ifdef CONFIG_PM
|
||||
pm_ctrl_enable_state(PM_STATE_STANDBY);
|
||||
pm_constraint_release(PM_STATE_STANDBY);
|
||||
#endif
|
||||
spi_context_release(ctx, err);
|
||||
return err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue