power: Remove power management conditionals from code
Remove conditionals (PM_DEEP_SLEEP_STATES and PM_SLEEP_STATES) from power management code. Now these features are always available when power management is enabled. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
579f7049c7
commit
d21cfd5f36
15 changed files with 18 additions and 68 deletions
|
@ -207,8 +207,7 @@ static int i2c_cc13xx_cc26xx_transfer(const struct device *dev,
|
|||
|
||||
k_sem_take(&get_dev_data(dev)->lock, K_FOREVER);
|
||||
|
||||
#if defined(CONFIG_PM) && \
|
||||
defined(CONFIG_PM_SLEEP_STATES)
|
||||
#ifdef CONFIG_PM
|
||||
pm_ctrl_disable_state(PM_STATE_STANDBY);
|
||||
#endif
|
||||
|
||||
|
@ -232,8 +231,7 @@ static int i2c_cc13xx_cc26xx_transfer(const struct device *dev,
|
|||
}
|
||||
}
|
||||
|
||||
#if defined(CONFIG_PM) && \
|
||||
defined(CONFIG_PM_SLEEP_STATES)
|
||||
#ifdef CONFIG_PM
|
||||
pm_ctrl_enable_state(PM_STATE_STANDBY);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue