diff options
| author | 2025-02-17 14:16:21 +0000 | |
|---|---|---|
| committer | 2025-03-04 13:17:50 +0000 | |
| commit | b3179f59c104484896516fddb119116e02fa287d (patch) | |
| tree | 8c5aa3ac549956f763e8eb5e3dfa3b621b1e17d2 /rust/kernel/gpu | |
| parent | iio: adc: ad_sigma_delta: Switch to sparse friendly iio_device_claim/release_direct() (diff) | |
iio: adc: at91-sama5d2: Move claim of direct mode up a level and use guard()
Move iio_device_claim_direct_mode() up one layer in the call stack,
and use guard() for scope based unlocking to simplify error handling
by allowing direct returns.
Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Link: https://patch.msgid.link/20250217141630.897334-22-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'rust/kernel/gpu')
0 files changed, 0 insertions, 0 deletions
