linux/drivers/iio/dummy
Jonathan Cameron 73dad3ec96 iio: dummy: 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. Introduce two new utility functions
to allow for direct returns with claim and release of direct mode
in the caller.

Reviewed-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20250209180624.701140-25-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
History 2025-02-17 13:03:40 +00:00
..
iio_dummy_evgen.c iio: dummy_evgen: remove Excess kernel-doc comments 2024-02-17 16:16:09 +00:00
iio_dummy_evgen.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
iio_simple_dummy.c iio: dummy: Stop using iio_device_claim_direct_scoped() 2025-02-17 13:03:40 +00:00
iio_simple_dummy.h iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
iio_simple_dummy_buffer.c iio: dummy: iio_simply_dummy_buffer: fix information leak in triggered buffer 2024-12-07 17:23:41 +00:00
iio_simple_dummy_events.c iio: dummy: use specialized event code macros 2024-11-03 20:33:45 +00:00
Kconfig iio: dummy: Fix build error when CONFIG_IIO_TRIGGERED_BUFFER is not set 2021-06-13 17:00:17 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00