commit | 90465fe5372af05a00aa4efb51d21624e3e60755 | [log] [tgz] |
---|---|---|
author | Gerard Marull-Paretas <gerard.marull@nordicsemi.no> | Thu Aug 26 17:27:49 2021 +0200 |
committer | Anas Nashif <anas.nashif@intel.com> | Fri Aug 27 09:06:51 2021 -0400 |
tree | 6f4ff9b83f47a6e1bf1c251028151389a49984ff | |
parent | a89cc157af6eb72b127b393aab1f916bd2d01b30 [diff] |
device: improve device data initialization The Z_DEVICE_STATE_DEFINE macro was conditioned by CONFIG_PM_DEVICE. This is a problem if one day we have other conditional fields in the device state field that need to be initialized. The approach has been changed to have an always existing initializer for the PM field, that is a no-op if device PM is not enabled. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>