diff options
| author | Antoniu Miclaus <antoniu.miclaus@analog.com> | 2026-03-21 13:01:51 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2026-03-21 15:02:24 +0300 |
| commit | 0dc1147b4c9d4a77e8e4942b92ebf398aff1e91d (patch) | |
| tree | 013883fd695e1f560f50359f939ef759652105f4 /include/linux | |
| parent | e7ecdcbc16f049edfa32be01b34ec8dc8e3c51ce (diff) | |
| download | linux-0dc1147b4c9d4a77e8e4942b92ebf398aff1e91d.tar.xz | |
iio: backend: use __free(fwnode_handle) for automatic cleanup
Convert __devm_iio_backend_fwnode_get() to use the __free(fwnode_handle)
cleanup attribute for the fwnode_back variable, removing the need for
manual fwnode_handle_put() calls. Move the declaration closer to its
first use, narrowing its scope.
No functional change.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
