commit | 696caa05247238492f5be85eaf40a02348bb6311 | [log] [tgz] |
---|---|---|
author | Gerard Marull-Paretas <gerard.marull@nordicsemi.no> | Mon Dec 20 20:31:08 2021 +0100 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Tue Jan 11 10:46:20 2022 +0100 |
tree | c5243e099b0e4d2bea0917311fada79c8127f842 | |
parent | e5df3a8cc4ead9245ed058e35dc89614a8dadc0a [diff] |
pm: policy: return a reference to the next state Return a constant reference to the next state instead of a copy of struct pm_state_info. When the next state should be active, just return NULL. Struct copying should be in general avoided, specially in code paths executed frequently as is this one. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>