diff options
| author | Jonathan Cameron <[email protected]> | 2024-01-28 15:05:30 +0000 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2024-02-17 16:16:10 +0000 |
| commit | eabc6b08476f18de5e0d7fc02aa92f4896f2fc63 (patch) | |
| tree | 39a6e352c948b6476d5df06705bedb65f5ac5ad3 /tools/perf/scripts/python | |
| parent | 366328e5ac47a763d77b9dd85172d3eb3735568e (diff) | |
iio: accel: adxl367: Use automated cleanup for locks and iio direct mode.
Switching to the iio_device_claim_direct_scoped() for state
and to guard() based unlocking of mutexes simplifies error handling
by allowing direct returns when an error is encountered.
Reviewed-by: Nuno Sa <[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