dm: core: Add a macro to iterate through properties

Add a 'for_each' macro like we have for nodes.

Fix the comment for struct ofprop while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2022-09-06 20:27:16 -06:00
committed by Tom Rini
parent f46ec93ed5
commit 52ad21aa2c
3 changed files with 63 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ typedef union ofnode_union {
*
* @node: Pointer to device node
* @offset: Pointer into flat device tree, used for flat tree.
* @prop: Pointer to property, used for live treee.
* @prop: Pointer to property, used for live tree.
*/
struct ofprop {