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:
parent
93c5e253a4
commit
fdd85d5ad7
166 changed files with 883 additions and 872 deletions
|
@ -918,22 +918,22 @@ static void i2s_stm32_irq_config_func_##index(struct device *dev) \
|
|||
irq_enable(DT_IRQN(DT_NODELABEL(i2s##index))); \
|
||||
}
|
||||
|
||||
#if DT_HAS_NODE(DT_NODELABEL(i2s1))
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2s1))
|
||||
I2S_INIT(1, 2)
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE(DT_NODELABEL(i2s2))
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2s2))
|
||||
I2S_INIT(2, 1)
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE(DT_NODELABEL(i2s3))
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2s3))
|
||||
I2S_INIT(3, 1)
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE(DT_NODELABEL(i2s4))
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2s4))
|
||||
I2S_INIT(4, 2)
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE(DT_NODELABEL(i2s5))
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2s5))
|
||||
I2S_INIT(5, 2)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue