diff options
| author | Lincoln Yuji <[email protected]> | 2024-04-29 10:22:33 -0300 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2024-04-29 21:00:10 +0100 |
| commit | d1648883355a25488836daf1ca26e10577c2c50c (patch) | |
| tree | 2a86223a1d53d4d0463e43c0a02a0d09637df244 /tools/perf/scripts/python | |
| parent | 80f87d6bbc6ddcc47969c996649e8a995587e7ae (diff) | |
iio: adc: ti-ads1015: use device_for_each_child_node_scoped()
This loop definition removes the need for manual releasing of the
fwnode_handle in early exit paths (here an error path) allow
simplification of the code and reducing the chance of future
modifications not releasing fwnode_handle correctly.
Co-developed-by: Luiza Soezima <[email protected]>
Signed-off-by: Luiza Soezima <[email protected]>
Co-developed-by: Sabrina Araujo <[email protected]>
Signed-off-by: Sabrina Araujo <[email protected]>
Signed-off-by: Lincoln Yuji <[email protected]>
Reviewed-by: Marcelo Schmitt <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions