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
|
@ -422,18 +422,18 @@ static int pwm_nrfx_pm_control(struct device *dev,
|
|||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
&pwm_nrfx_drv_api_funcs)
|
||||
|
||||
#if DT_HAS_NODE(DT_NODELABEL(pwm0))
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm0))
|
||||
PWM_NRFX_DEVICE(0);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE(DT_NODELABEL(pwm1))
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm1))
|
||||
PWM_NRFX_DEVICE(1);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE(DT_NODELABEL(pwm2))
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
PWM_NRFX_DEVICE(2);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE(DT_NODELABEL(pwm3))
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm3))
|
||||
PWM_NRFX_DEVICE(3);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue