zephyr/tests/lib/devicetree
Yong Cong Sin 5aebd1276d devicetree: add DT_NODE_HAS_STATUS_OKAY
We already have `DT_HAS_COMPAT_STATUS_OKAY` and
`DT_NUM_INST_STATUS_OKAY`, it seems intuitive to assume that
`DT_NODE_HAS_STATUS_OKAY` exists, so much so that it was used
before it's implemented.

This patch implements `DT_NODE_HAS_STATUS_OKAY`, which is
equivalent to: `DT_NODE_HAS_STATUS(<node_id>, okay)`

Added test for it in `tests/lib/devicetree/api`

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
2024-10-03 17:06:52 +01:00
..
api devicetree: add DT_NODE_HAS_STATUS_OKAY 2024-10-03 17:06:52 +01:00
api_ext everywhere: reindent .overlay files with tabs 2024-06-26 15:59:44 +02:00
devices tests: lib: devicetree devices: only run on native_sim 2024-01-29 10:29:38 +01:00
memory_region everywhere: reindent .overlay files with tabs 2024-06-26 15:59:44 +02:00