linux/drivers/iio/dummy
Jonathan Cameron 366328e5ac iio: dummy: Use automatic lock and direct mode cleanup.
Given we now have iio_device_claim_direct_scoped() to perform automatic
releasing of direct mode at exit from the scope that follows it, this can
be used in conjunction with guard(mutex) etc remove a lot of special case
handling.

Note that in this particular example code, there is no real reason you can't
read channels via sysfs at the same time as filling the software buffer.
To make it look more like a real driver constrain raw and processed
channel reads from occurring whilst the buffer is in use.

Reviewed-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sa <nuno.a@analog.com>
Link: https://lore.kernel.org/r/20240128150537.44592-3-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2024-02-17 16:16:10 +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
iio_simple_dummy_buffer.c iio: fix opencoded for_each_set_bit() 2022-05-02 06:30:39 -07:00
iio_simple_dummy_events.c iio: dummy: iio_simple_dummy_events: Demote file header and supply descriptions for val2 params 2020-07-20 09:02:55 +01:00
iio_simple_dummy.c iio: dummy: Use automatic lock and direct mode cleanup. 2024-02-17 16:16:10 +00:00
iio_simple_dummy.h
Kconfig iio: dummy: Fix build error when CONFIG_IIO_TRIGGERED_BUFFER is not set 2021-06-13 17:00:17 +01:00
Makefile