diff options
author | Jonathan Cameron <jic23@cam.ac.uk> | 2011-02-11 08:09:10 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-18 16:22:51 -0500 |
commit | b174baf4b79a067b58a77b86893c55d2c018d6f4 (patch) | |
tree | 986bfcbff3fe99fc0de3b9369c543286504029f1 /drivers/staging/iio/Kconfig | |
parent | d5857d65b5f7fab78c69da4085f0ce85a0399b25 (diff) |
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/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/staging/iio/Kconfig b/drivers/staging/iio/Kconfig index e2ac07d8611..6775bf90e2f 100644 --- a/drivers/staging/iio/Kconfig +++ b/drivers/staging/iio/Kconfig | |||
@@ -29,6 +29,15 @@ config IIO_SW_RING | |||
29 | with the intention that some devices would be able to write | 29 | with the intention that some devices would be able to write |
30 | in interrupt context. | 30 | in interrupt context. |
31 | 31 | ||
32 | config IIO_KFIFO_BUF | ||
33 | select IIO_TRIGGER | ||
34 | tristate "Industrial I/O buffering based on kfifo" | ||
35 | help | ||
36 | A simple fifo based on kfifo. Use this if you want a fifo | ||
37 | rather than a ring buffer. Note that this currently provides | ||
38 | no buffer events so it is up to userspace to work out how | ||
39 | often to read from the buffer. | ||
40 | |||
32 | endif # IIO_RINGBUFFER | 41 | endif # IIO_RINGBUFFER |
33 | 42 | ||
34 | config IIO_TRIGGER | 43 | config IIO_TRIGGER |