diff options
| author | 2025-02-17 14:16:23 +0000 | |
|---|---|---|
| committer | 2025-03-04 13:17:50 +0000 | |
| commit | 2ce5314c689cd1541b9e96aceed98708309c49c8 (patch) | |
| tree | b4cb0d98639d93403af2685d826a0e4f3100755a /rust/kernel/gpu/ssh:/git@git.zx2c4.com | |
| parent | iio: adc: at91-sama5d2: Switch to sparse friendly iio_device_claim/release_direct() (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 'rust/kernel/gpu/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
