diff options
| author | Kurt Borja <kuurtb@gmail.com> | 2026-01-20 01:20:43 -0500 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2026-01-22 20:53:17 +0000 |
| commit | 2daee817df13fb539be01a6a8094d52667d402f6 (patch) | |
| tree | 22ee4dd50726710bfa3514aa05a7c66f76f096eb /tools/perf/scripts/python | |
| parent | c37ec9d507966a827913f42e06179e3475a00181 (diff) | |
| download | linux-2daee817df13fb539be01a6a8094d52667d402f6.tar.gz linux-2daee817df13fb539be01a6a8094d52667d402f6.zip | |
iio: core: Match iio_device_claim_*() semantics and implementation
Implement iio_device_claim_buffer_mode() fully inline with the use of
__iio_dev_mode_lock(), which takes care of sparse annotations.
To completely match iio_device_claim_direct() semantics, we need to
also change iio_device_claim_buffer_mode() return semantics to usual
true/false conditional lock semantics.
Additionally, to avoid silently breaking out-of-tree drivers, rename
iio_device_claim_buffer_mode() to iio_device_claim_try_buffer_mode().
Reviewed-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Kurt Borja <kuurtb@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
