[PATCH 0/2] iio: Add no-triggered buffer helper functions

From: Karol Wrona
Date: Thu Jan 08 2015 - 11:41:18 EST


Hello,

This small patchset introduces helpers for iio kfifo which are useful when
IIO_HARDWARE/SOFTWARE_BUFFER is used. I decided to do it similar to Lars'
industrialio-triggered-buffer as a separate module what can be considered
as overkill but there is some risk that this source file will grow as new
needs will appear. Also it gives some flexibility with buffer handling choice.

Second patch deselect IIO_TRIGGER for iio kfifo. I think that there is no need
to use triggers always when iio kfifo is used and IIO_TRIGGERED_BUFFER also
selects IIO_KFIFO_BUF. I need some comments for this one to be sure if I do not
missed something. TI's AM335X ADC driver uses kfifo directly but without
triggered buffer/trigger in its sources so I hope there should be no problem
with that.

Thanks,
Karol

Karol Wrona (2):
iio: Add no-triggered buffer helper functions
iio: Deselect IIO_TRIGGER for IIO_KFIFO_BUF

drivers/iio/Kconfig | 7 ++-
drivers/iio/Makefile | 1 +
drivers/iio/industrialio-notriggered-buffer.c | 72 +++++++++++++++++++++++++
include/linux/iio/notriggered-buffer.h | 11 ++++
4 files changed, 90 insertions(+), 1 deletion(-)
create mode 100644 drivers/iio/industrialio-notriggered-buffer.c
create mode 100644 include/linux/iio/notriggered-buffer.h

--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/