diff options
| author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-02-24 12:32:07 +0000 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-03-25 19:50:10 +0000 |
| commit | 8ca555bd059a4e645b5cf0ec09c3e002a3d347af (patch) | |
| tree | 334950b0dad8f56b32bb7eb5d4b0966acc3f114c /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | e1186ee3f48eb29c296f30232ab0c0997c0c6a06 (diff) | |
iio: temp: ltc2983: Use __free(fwnode_handle) and device_for_each_node_scoped()
This use of the new cleanup.h scope based freeing infrastructure allows
us to exit directly from error conditions and in the good path with
the reference obtained from fwnode_find_reference() (which may be an error
pointer) automatically released.
Similarly the _scoped() version of device_for_each_child_node()
removes the need for the manual calling of fwnode_handl_put() in
paths where the code exits the loop early.
Tidy up some unusual indentation in a dev_dbg() whilst here.
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240224123215.161469-2-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
