Skip to content
Commit fb1f1971 authored by Jonathan Cameron's avatar Jonathan Cameron
Browse files

iio: proximity: sx9310: Use automated cleanup for locks and IIO mode claiming.



This simplifies error handling paths and generallly removes a bunch
of boilerplate.

Reviewed-by: default avatarNuno Sa <nuno.a@analog.com>
Link: https://lore.kernel.org/r/20240128150537.44592-9-jic23@kernel.org


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent d62f68c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment