linux/drivers/iio/addac
Jonathan Cameron e4c569742b iio: addac: ad74413r: Stop using iio_device_claim_direct_scoped()
This complex cleanup.h use case of conditional guards has proved
to be more trouble that it is worth in terms of false positive compiler
warnings and hard to read code.

Move directly to the new claim/release_direct() that allow sparse
to check for unbalanced context. Includes moving a mutex lock
into a function rather than around it to simplify the error handling.

Reviewed-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20250209180624.701140-21-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2025-02-17 13:02:42 +00:00
..
Kconfig IIO: 1st set of new device support, features and cleanup for 6.7 2023-10-20 07:54:15 +02:00
Makefile iio: addac: add AD74115 driver 2022-11-23 20:49:00 +00:00
ad74115.c Linux 6.12-rc2 2024-10-12 11:43:29 +01:00
ad74413r.c iio: addac: ad74413r: Stop using iio_device_claim_direct_scoped() 2025-02-17 13:02:42 +00:00
stx104.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00