doc: build: dts: Fix incorrect foreach documentation
Replaced incorrect rst link references in the description of traversing ancestor nodes, along with some conflicting descriptions. Signed-off-by: James Roy <rruuaanng@outlook.com>
This commit is contained in:
parent
2871f1abef
commit
19963594b0
1 changed files with 3 additions and 5 deletions
8
doc/build/dts/api/api.rst
vendored
8
doc/build/dts/api/api.rst
vendored
|
@ -104,12 +104,10 @@ does not apply to macros which take cell names as arguments.
|
|||
For-each macros
|
||||
===============
|
||||
|
||||
The :c:macro:`DT_FOREACH_CHILD` macro allows iterating over the ancestor node
|
||||
The :c:macro:`DT_FOREACH_ANCESTOR` macro allows iterating over the ancestor node
|
||||
of a devicetree node.
|
||||
|
||||
There is currently only one "generic" for-each macro,
|
||||
:c:macro:`DT_FOREACH_CHILD`, which allows iterating over the children of a
|
||||
devicetree node.
|
||||
Additionally, the :c:macro:`DT_FOREACH_CHILD` macro allows iterating over the
|
||||
children of a devicetree node.
|
||||
|
||||
There are special-purpose for-each macros, like
|
||||
:c:macro:`DT_INST_FOREACH_STATUS_OKAY`, but these require ``DT_DRV_COMPAT`` to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue