diff options
| author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-02-17 14:16:25 +0000 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-03-04 13:17:50 +0000 |
| commit | 386c1d6e41cf2d6071b4d10500b34c89a5439380 (patch) | |
| tree | 783102fffd5ddd4bebd5de6c110faae547bae077 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | iio: adc: max1027: Switch to sparse friendly iio_device_claim/release_direct() (diff) | |
| download | linux-386c1d6e41cf2d6071b4d10500b34c89a5439380.tar.gz linux-386c1d6e41cf2d6071b4d10500b34c89a5439380.zip | |
iio: adc: max11410: Factor out writing of sampling frequency to simplify errro paths.
Introduce __max11410_write_samp_freq() helper and use guard() to avoid
need for manual unlock of the mutex. This allows direct returns and
simplifies the resulting error handling.
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20250217141630.897334-26-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
