samples: pm: use new PM macros
Use recently introduced PM macros to define device PM resources. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
39f21dc116
commit
16d1e80cbe
2 changed files with 6 additions and 2 deletions
|
@ -113,6 +113,8 @@ int dummy_init(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
PM_DEVICE_DEFINE(dummy_driver, dummy_device_pm_action);
|
||||
|
||||
DEVICE_DEFINE(dummy_driver, DUMMY_DRIVER_NAME, &dummy_init,
|
||||
dummy_device_pm_action, NULL, NULL, APPLICATION,
|
||||
PM_DEVICE_REF(dummy_driver), NULL, NULL, APPLICATION,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &funcs);
|
||||
|
|
|
@ -51,6 +51,8 @@ int dummy_parent_init(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
PM_DEVICE_DEFINE(dummy_parent, dummy_parent_pm_action);
|
||||
|
||||
DEVICE_DEFINE(dummy_parent, DUMMY_PARENT_NAME, &dummy_parent_init,
|
||||
dummy_parent_pm_action, NULL, NULL, POST_KERNEL,
|
||||
PM_DEVICE_REF(dummy_parent), NULL, NULL, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &funcs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue