diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-02-17 14:16:23 +0000 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-03-04 13:17:50 +0000 |
commit | 2ce5314c689cd1541b9e96aceed98708309c49c8 (patch) | |
tree | b4cb0d98639d93403af2685d826a0e4f3100755a /tools/perf/scripts/python | |
parent | 173386d036336e8e75356ec89673a3f468f60b16 (diff) |
iio: adc: max1027: Move claim of direct mode up one level and use guard()
Move iio_device_claim_direct_mode() into the read_raw() callback
and use guard() to release a mutex. This enables simpler error
handling via direct returns.
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://patch.msgid.link/20250217141630.897334-24-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions