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
|
@ -10,7 +10,7 @@
|
|||
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1), okay)
|
||||
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(adc1))
|
||||
|
||||
#undef DT_DRV_COMPAT
|
||||
#define DT_DRV_COMPAT st_stm32_adc
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include <zephyr/logging/log.h>
|
||||
|
||||
#if !defined(CONFIG_SOC_SERIES_STM32F4X)
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
|
||||
#if DT_HAS_COMPAT_STATUS_OKAY(st_stm32_i2c_v1)
|
||||
#define DT_DRV_COMPAT st_stm32_i2c_v1
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2s2), okay)
|
||||
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(i2s2))
|
||||
|
||||
#if DT_HAS_COMPAT_STATUS_OKAY(st_stm32_i2s)
|
||||
#define DT_DRV_COMPAT st_stm32_i2s
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lptim1), okay)
|
||||
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(lptim1))
|
||||
|
||||
#undef DT_DRV_COMPAT
|
||||
#define DT_DRV_COMPAT st_stm32_lptim
|
||||
|
|
|
@ -80,7 +80,7 @@ ZTEST(stm32h7_devices_clocks, test_spi_clk_config)
|
|||
RCC_SPI123CLKSOURCE_CLKP, spi1_actual_domain_clk);
|
||||
|
||||
/* Check perclk configuration */
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(perck), okay)
|
||||
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(perck))
|
||||
uint32_t perclk_dt_domain_clk, perclk_actual_domain_clk;
|
||||
|
||||
perclk_dt_domain_clk = DT_CLOCKS_CELL_BY_IDX(DT_NODELABEL(perck), 0, bus);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue