dts: Rename DT_HAS_NODE macro to DT_HAS_NODE_STATUS_OKAY

Rename DT_HAS_NODE to DT_HAS_NODE_STATUS_OKAY so the semantics are
clear.  As going forward DT_HAS_NODE will report if a NODE exists
regardless of its status.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-05-05 13:55:28 -05:00 committed by Kumar Gala
commit fdd85d5ad7
166 changed files with 883 additions and 872 deletions

View file

@ -14,11 +14,11 @@
/* pin assignments for Dragino LSN50 board */
static const struct pin_config pinconf[] = {
#if DT_HAS_NODE(DT_NODELABEL(usart1))
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
{STM32_PIN_PB6, STM32L0_PINMUX_FUNC_PB6_USART1_TX},
{STM32_PIN_PB7, STM32L0_PINMUX_FUNC_PB7_USART1_RX},
#endif
#if DT_HAS_NODE(DT_NODELABEL(usart2))
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
{STM32_PIN_PA2, STM32L0_PINMUX_FUNC_PA2_USART2_TX},
{STM32_PIN_PA3, STM32L0_PINMUX_FUNC_PA3_USART2_RX},
#endif