pm: device: rename INIT_PM_DEVICE_RUNTIME
Rename the macro used to initialize the runtime fields to
Z_PM_DEVICE_RUNTIME_INIT (emphasize it is internal and follows parent
macro naming).
Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
diff --git a/include/pm/device.h b/include/pm/device.h
index 3b12a1c..c28ef2e 100644
--- a/include/pm/device.h
+++ b/include/pm/device.h
@@ -116,11 +116,11 @@
};
#ifdef CONFIG_PM_DEVICE_RUNTIME
-#define INIT_PM_DEVICE_RUNTIME(obj) \
+#define Z_PM_DEVICE_RUNTIME_INIT(obj) \
.lock = Z_MUTEX_INITIALIZER(obj.lock), \
.condvar = Z_CONDVAR_INITIALIZER(obj.condvar),
#else
-#define INIT_PM_DEVICE_RUNTIME(obj)
+#define Z_PM_DEVICE_RUNTIME_INIT(obj)
#endif /* CONFIG_PM_DEVICE_RUNTIME */
/**
@@ -135,7 +135,7 @@
*/
#define Z_PM_DEVICE_INIT(obj, node_id, pm_action_cb) \
{ \
- INIT_PM_DEVICE_RUNTIME(obj) \
+ Z_PM_DEVICE_RUNTIME_INIT(obj) \
.action_cb = pm_action_cb, \
.state = PM_DEVICE_STATE_ACTIVE, \
.flags = ATOMIC_INIT(COND_CODE_1( \