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
|
@ -148,8 +148,7 @@ static int spi_cc13xx_cc26xx_transceive(const struct device *dev,
|
|||
|
||||
spi_context_lock(ctx, false, NULL, config);
|
||||
|
||||
#if defined(CONFIG_PM) && \
|
||||
defined(CONFIG_PM_SLEEP_STATES)
|
||||
#ifdef CONFIG_PM
|
||||
pm_ctrl_disable_state(PM_STATE_STANDBY);
|
||||
#endif
|
||||
|
||||
|
@ -185,8 +184,7 @@ static int spi_cc13xx_cc26xx_transceive(const struct device *dev,
|
|||
spi_context_cs_control(ctx, false);
|
||||
|
||||
done:
|
||||
#if defined(CONFIG_PM) && \
|
||||
defined(CONFIG_PM_SLEEP_STATES)
|
||||
#ifdef CONFIG_PM
|
||||
pm_ctrl_enable_state(PM_STATE_STANDBY);
|
||||
#endif
|
||||
spi_context_release(ctx, err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue