14 #include <linux/kernel.h>
15 #include <linux/export.h>
16 #include <linux/slab.h>
19 #include <linux/bitmap.h>
29 static const s16 fakedata[] = {
45 static irqreturn_t iio_simple_dummy_trigger_h(
int irq,
void *
p)
82 data[
i] = fakedata[
j];
133 struct iio_buffer *
buffer;
137 if (buffer ==
NULL) {
145 buffer->scan_timestamp =
true;
151 indio_dev->
setup_ops = &iio_simple_dummy_buffer_setup_ops;
170 &iio_simple_dummy_trigger_h,
173 "iio_simple_dummy_consumer%d",
178 goto error_free_buffer;
189 goto error_dealloc_pollfunc;
193 error_dealloc_pollfunc: