diff options
| author | Remo Senekowitsch <[email protected]> | 2025-06-16 15:45:09 +0000 |
|---|---|---|
| committer | Danilo Krummrich <[email protected]> | 2025-06-25 15:18:07 +0000 |
| commit | c942dba38064cd35214c6b3249120f3f2945e810 (patch) | |
| tree | 06b642dcebc097fa4fe6760edeb08e598ae4021f /rust/helpers/of.c | |
| parent | Merge 6.16-rc3 into driver-core-next (diff) | |
| download | kernel-c942dba38064cd35214c6b3249120f3f2945e810.tar.gz kernel-c942dba38064cd35214c6b3249120f3f2945e810.zip | |
rust: device: Add child accessor and iterator
Allow Rust drivers to access children of a fwnode either by name or by
iterating over all of them.
In C, there is the function `fwnode_get_next_child_node` for iteration
and the macro `fwnode_for_each_child_node` that helps with handling the
pointers. Instead of a macro, a native iterator is used in Rust such
that regular for-loops can be used.
Tested-by: Dirk Behme <[email protected]>
Signed-off-by: Remo Senekowitsch <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'rust/helpers/of.c')
0 files changed, 0 insertions, 0 deletions
