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,15 +14,15 @@
/* pin assignments for Feather STM32F405 board */
static const struct pin_config pinconf[] = {
#if DT_HAS_NODE(DT_NODELABEL(usart3))
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_USART3_TX},
{STM32_PIN_PB11, STM32F4_PINMUX_FUNC_PB11_USART3_RX},
#endif
#if DT_HAS_NODE(DT_NODELABEL(i2c1))
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_I2C1_SCL},
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_I2C1_SDA},
#endif
#if DT_HAS_NODE(DT_NODELABEL(spi1))
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
#ifdef CONFIG_SPI_STM32_USE_HW_SS
{STM32_PIN_PA15, STM32F4_PINMUX_FUNC_PA15_SPI1_NSS |
STM32_OSPEEDR_VERY_HIGH_SPEED},
@ -32,7 +32,7 @@ static const struct pin_config pinconf[] = {
{STM32_PIN_PB4, STM32F4_PINMUX_FUNC_PA6_SPI1_MISO},
{STM32_PIN_PB5, STM32F4_PINMUX_FUNC_PA7_SPI1_MOSI},
#endif
#if DT_HAS_NODE(DT_NODELABEL(spi2))
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
{STM32_PIN_PB13, STM32F4_PINMUX_FUNC_PB13_SPI2_SCK},
{STM32_PIN_PB14, STM32F4_PINMUX_FUNC_PB14_SPI2_MISO},
{STM32_PIN_PB15, STM32F4_PINMUX_FUNC_PB15_SPI2_MOSI},