commit | 9b7638f04984042b2b5b9605b5aa6753a4542225 | [log] [tgz] |
---|---|---|
author | Yong Cong Sin <ycsin@meta.com> | Wed Apr 24 22:27:28 2024 +0800 |
committer | Fabio Baltieri <fabio.baltieri@gmail.com> | Fri Apr 26 20:04:38 2024 +0100 |
tree | 6b1ae5c41181782df3180a47b1f07f76408d58fa | |
parent | a1916b0121aeb7de25be1511267696b142c39857 [diff] |
devicetree: implement `DT_INST_NODE_HAS_COMPAT` Implement `DT_INST_NODE_HAS_COMPAT` to check if a node has a compatible. This is helpful when a node has more than one compatible, which can be used to enable additional features in the driver. Updated the devicetree test to play with the new API. Signed-off-by: Yong Cong Sin <ycsin@meta.com>