diff options
| author | Javier Carrasco <[email protected]> | 2024-08-01 08:13:51 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2024-08-03 12:12:55 +0100 |
| commit | 72c80a932074562ab4c5a6e20050997bc2f4c07d (patch) | |
| tree | de551dc071a60648ac020bb027f29ec28ce1536b /tools/perf/scripts/python/flamegraph.py | |
| parent | 1ca99efa17de319582dea5abbf57e17d4ede253a (diff) | |
iio: adc: ad7768-1: use device_* to iterate over device child nodes
Drop the manual access to the fwnode of the device to iterate over its
child nodes. `device_for_each_child_node` macro provides direct access
to the child nodes, and given that they are only required within the
loop, the scoped variant of the macro can be used.
Use the `device_for_each_child_node_scoped` macro to iterate over the
direct child nodes of the device.
Signed-off-by: Javier Carrasco <[email protected]>
Reviewed-by: Nuno Sa <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions