Commit 73ab6b6
include: zephyr: drivers: adc: Replace FOREACH with CHILD_BY_UNIT_ADDR_INT
The macro to initialise a struct adc_dt_spec instance uses a FOREACH macro,
which can be problematic when nesting in other FOREACH macros, for example
in driver implementations.
Replace it with DT_CHILD_BY_UNIT_ADDR_INT.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>1 parent 4208bd7 commit 73ab6b6
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
| 343 | + | |
347 | 344 | | |
348 | 345 | | |
349 | 346 | | |
| |||
0 commit comments