diff options
author | Lincoln Yuji <lincolnyuji@usp.br> | 2024-04-29 10:22:33 -0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-04-29 21:00:10 +0100 |
commit | d1648883355a25488836daf1ca26e10577c2c50c (patch) | |
tree | 2a86223a1d53d4d0463e43c0a02a0d09637df244 /samples/ftrace | |
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 <lbrsoezima@usp.br>
Signed-off-by: Luiza Soezima <lbrsoezima@usp.br>
Co-developed-by: Sabrina Araujo <sabrinaaraujo@usp.br>
Signed-off-by: Sabrina Araujo <sabrinaaraujo@usp.br>
Signed-off-by: Lincoln Yuji <lincolnyuji@usp.br>
Reviewed-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
Link: https://lore.kernel.org/r/20240429132233.6266-1-lincolnyuji@usp.br
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'samples/ftrace')
0 files changed, 0 insertions, 0 deletions