device.h: fix inconsistent semicolon logic for DEVICE_DT_DEFINE
#152343
Annotations
1 error, 1 warning, and 1 notice
|
ClangFormat.txt#L1
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details.
You may want to run clang-format on this change:
-#define DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, prio, api, \
- ...) \
- Z_DEVICE_STATE_DEFINE(Z_DEVICE_DT_DEV_ID(node_id)); \
- Z_DEVICE_DEFINE(node_id, Z_DEVICE_DT_DEV_ID(node_id), \
- DEVICE_DT_NAME(node_id), init_fn, pm, data, config, \
- level, prio, api, \
- &Z_DEVICE_STATE_NAME(Z_DEVICE_DT_DEV_ID(node_id)), \
- __VA_ARGS__) \
+#define DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, prio, api, ...) \
+ Z_DEVICE_STATE_DEFINE(Z_DEVICE_DT_DEV_ID(node_id)); \
+ Z_DEVICE_DEFINE(node_id, Z_DEVICE_DT_DEV_ID(node_id), DEVICE_DT_NAME(node_id), init_fn, \
+ pm, data, config, level, prio, api, \
+ &Z_DEVICE_STATE_NAME(Z_DEVICE_DT_DEV_ID(node_id)), __VA_ARGS__) \
File:include/zephyr/device.h
Line:211
|
include/zephyr/device.h#L211
include/zephyr/device.h:211
-#define DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, prio, api, \
- ...) \
- Z_DEVICE_STATE_DEFINE(Z_DEVICE_DT_DEV_ID(node_id)); \
- Z_DEVICE_DEFINE(node_id, Z_DEVICE_DT_DEV_ID(node_id), \
- DEVICE_DT_NAME(node_id), init_fn, pm, data, config, \
- level, prio, api, \
- &Z_DEVICE_STATE_NAME(Z_DEVICE_DT_DEV_ID(node_id)), \
- __VA_ARGS__) \
+#define DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, prio, api, ...) \
+ Z_DEVICE_STATE_DEFINE(Z_DEVICE_DT_DEV_ID(node_id)); \
+ Z_DEVICE_DEFINE(node_id, Z_DEVICE_DT_DEV_ID(node_id), DEVICE_DT_NAME(node_id), init_fn, \
+ pm, data, config, level, prio, api, \
+ &Z_DEVICE_STATE_NAME(Z_DEVICE_DT_DEV_ID(node_id)), __VA_ARGS__) \
|
This job succeeded
Loading