devicetree: Use IS_EQ()
for DT_SAME_NODE()
`DT_SAME_NODE()` is judged by `==` and cannot be used as a condition for `COND_CODE_1()`. Using `IS_EQ()` to make it possible for compile-time calculation. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
This commit is contained in:
parent
bd0efcc948
commit
ba48d83bec
1 changed files with 1 additions and 1 deletions
|
@ -690,7 +690,7 @@
|
||||||
* refer to the same node, and evaluates to 0 otherwise
|
* refer to the same node, and evaluates to 0 otherwise
|
||||||
*/
|
*/
|
||||||
#define DT_SAME_NODE(node_id1, node_id2) \
|
#define DT_SAME_NODE(node_id1, node_id2) \
|
||||||
(DT_DEP_ORD(node_id1) == (DT_DEP_ORD(node_id2)))
|
IS_EQ(DT_DEP_ORD(node_id1), DT_DEP_ORD(node_id2))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get a devicetree node's node labels as an array of strings
|
* @brief Get a devicetree node's node labels as an array of strings
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue