drivers: i2c: cc13xx_cc26xx: remove CONFIG_PM guards
API provides no-op fallback when CONFIG_PM=n Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
fa88c283a4
commit
a0ade1d856
1 changed files with 0 additions and 4 deletions
|
@ -197,9 +197,7 @@ static int i2c_cc13xx_cc26xx_transfer(const struct device *dev,
|
||||||
|
|
||||||
k_sem_take(&data->lock, K_FOREVER);
|
k_sem_take(&data->lock, K_FOREVER);
|
||||||
|
|
||||||
#ifdef CONFIG_PM
|
|
||||||
pm_policy_state_lock_get(PM_STATE_STANDBY);
|
pm_policy_state_lock_get(PM_STATE_STANDBY);
|
||||||
#endif
|
|
||||||
|
|
||||||
for (int i = 0; i < num_msgs; i++) {
|
for (int i = 0; i < num_msgs; i++) {
|
||||||
/* Not supported by hardware */
|
/* Not supported by hardware */
|
||||||
|
@ -221,9 +219,7 @@ static int i2c_cc13xx_cc26xx_transfer(const struct device *dev,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_PM
|
|
||||||
pm_policy_state_lock_put(PM_STATE_STANDBY);
|
pm_policy_state_lock_put(PM_STATE_STANDBY);
|
||||||
#endif
|
|
||||||
|
|
||||||
k_sem_give(&data->lock);
|
k_sem_give(&data->lock);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue