drivers: use new PM macros
Port some drivers to the recently introduced macros to showcase its usage and be able to do some initial testing (nRF52840). Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
e2f33dd97c
commit
88a69674c0
38 changed files with 123 additions and 71 deletions
|
@ -302,9 +302,11 @@ static const struct sensor_driver_api ina219_api = {
|
|||
.mode = INA219_MODE_NORMAL \
|
||||
}; \
|
||||
\
|
||||
PM_DEVICE_DT_INST_DEFINE(n, ina219_pm_action); \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(n, \
|
||||
ina219_init, \
|
||||
ina219_pm_action, \
|
||||
PM_DEVICE_DT_INST_REF(n), \
|
||||
&ina219_data_##n, \
|
||||
&ina219_config_##n, \
|
||||
POST_KERNEL, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue