Skip to content
Commit 36049b16 authored by Kumar Gala's avatar Kumar Gala Committed by Kumar Gala
Browse files

drivers: Convert to use DT_INST_FOREACH



Convert drivers that have the following pattern:

   #if DT_INST_NODE_HAS_PROP(0, label)
   INIT_MACRO(0)
   #endif

   ...

   #if DT_INST_NODE_HAS_PROP(n, label)
   INIT_MACRO(n)
   #endif

to use DT_INST_FOREACH(INIT_MACRO) instead.

Signed-off-by: default avatarKumar Gala <kumar.gala@linaro.org>
parent cab9a229
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment