zephyr: bulk update to DT_NODE_HAS_STATUS_OKAY
Change instances of: DT_NODE_HAS_STATUS(<node_id>, okay) to DT_NODE_HAS_STATUS_OKAY(<node_id>) Signed-off-by: Yong Cong Sin <ycsin@meta.com> Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
parent
5aebd1276d
commit
52a202309b
180 changed files with 743 additions and 738 deletions
|
@ -17,14 +17,14 @@ void soc_early_init_hook(void)
|
|||
/* On ARC EM Starter kit board,
|
||||
* send the UART the command to clear the interrupt
|
||||
*/
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(0, ns16550), okay)
|
||||
#if DT_NODE_HAS_STATUS_OKAY(DT_INST(0, ns16550))
|
||||
sys_write32(0, DT_REG_ADDR(DT_INST(0, ns16550))+0x4);
|
||||
sys_write32(0, DT_REG_ADDR(DT_INST(0, ns16550))+0x10);
|
||||
#endif /* DT_NODE_HAS_STATUS(DT_INST(0, ns16550), okay) */
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(1, ns16550), okay)
|
||||
#endif /* DT_NODE_HAS_STATUS_OKAY(DT_INST(0, ns16550)) */
|
||||
#if DT_NODE_HAS_STATUS_OKAY(DT_INST(1, ns16550))
|
||||
sys_write32(0, DT_REG_ADDR(DT_INST(1, ns16550))+0x4);
|
||||
sys_write32(0, DT_REG_ADDR(DT_INST(1, ns16550))+0x10);
|
||||
#endif /* DT_NODE_HAS_STATUS(DT_INST(1, ns16550), okay) */
|
||||
#endif /* DT_NODE_HAS_STATUS_OKAY(DT_INST(1, ns16550)) */
|
||||
}
|
||||
|
||||
#endif /* CONFIG_UART_NS16550 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue