aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/Kconfig
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@cam.ac.uk>2011-02-11 13:09:10 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-18 13:22:51 -0800
commitb174baf4b79a067b58a77b86893c55d2c018d6f4 (patch)
tree986bfcbff3fe99fc0de3b9369c543286504029f1 /drivers/staging/iio/Kconfig
parentstaging:iio:buffering move the copy to user on rip down into implementations (diff)
downloadlinux-stable-b174baf4b79a067b58a77b86893c55d2c018d6f4.tar.xz
linux-stable-b174baf4b79a067b58a77b86893c55d2c018d6f4.zip
staging:iio:kfifo buffer implementation
A very simple use of a kfifo as an alternative for the ring_sw Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Tested-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/Kconfig')
-rw-r--r--drivers/staging/iio/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/staging/iio/Kconfig b/drivers/staging/iio/Kconfig
index e2ac07d86110..6775bf90e2f1 100644
--- a/drivers/staging/iio/Kconfig
+++ b/drivers/staging/iio/Kconfig
@@ -29,6 +29,15 @@ config IIO_SW_RING
with the intention that some devices would be able to write
in interrupt context.
+config IIO_KFIFO_BUF
+ select IIO_TRIGGER
+ tristate "Industrial I/O buffering based on kfifo"
+ help
+ A simple fifo based on kfifo. Use this if you want a fifo
+ rather than a ring buffer. Note that this currently provides
+ no buffer events so it is up to userspace to work out how
+ often to read from the buffer.
+
endif # IIO_RINGBUFFER
config IIO_TRIGGER