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:
Yong Cong Sin 2024-09-20 12:47:40 +08:00 committed by Fabio Baltieri
commit 52a202309b
180 changed files with 743 additions and 738 deletions

View file

@ -403,7 +403,7 @@ static int ite_it8xxx2_init(void)
IT8XXX2_EGPIO_EGCR |= IT8XXX2_EGPIO_EEPODD;
#endif
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart1), okay)
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(uart1))
/* UART1 board init */
/* bit2: clocks to UART1 modules are not gated. */
IT8XXX2_ECPM_CGCTRL3R &= ~BIT(2);
@ -417,9 +417,9 @@ static int ite_it8xxx2_init(void)
/* switch UART1 on without hardware flow control */
gpio_regs->GPIO_GCR1 |= IT8XXX2_GPIO_U1CTRL_SIN0_SOUT0_EN;
#endif /* DT_NODE_HAS_STATUS(DT_NODELABEL(uart1), okay) */
#endif /* DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(uart1)) */
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart2), okay)
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(uart2))
/* UART2 board init */
/* setting voltage 3.3v */
gpio_regs->GPIO_GCR21 &= ~(IT8XXX2_GPIO_GPH1VS | IT8XXX2_GPIO_GPH2VS);
@ -435,7 +435,7 @@ static int ite_it8xxx2_init(void)
/* switch UART2 on without hardware flow control */
gpio_regs->GPIO_GCR1 |= IT8XXX2_GPIO_U2CTRL_SIN1_SOUT1_EN;
#endif /* DT_NODE_HAS_STATUS(DT_NODELABEL(uart2), okay) */
#endif /* DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(uart2)) */
#if (SOC_USBPD_ITE_PHY_PORT_COUNT > 0)
int port;