summaryrefslogtreecommitdiffstats
path: root/drivers/iio/Kconfig
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-06-18 18:33:48 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-18 17:26:09 -0700
commit23f2d735a932c7833d2d00da5e3ecdf4a6836210 (patch)
tree2e0d4da782473ccd226fc6f4221b2c0bc92ba411 /drivers/iio/Kconfig
parentf5b81ddd12da71bd00b2963203c23ff929e0c182 (diff)
downloadlinux-23f2d735a932c7833d2d00da5e3ecdf4a6836210.tar.bz2
iio: Add helper function for initializing triggered buffers
Add a helper function for executing the common tasks which are usually involved in setting up a simple software ringbuffer. It will allocate the buffer, allocate the pollfunc and register the buffer. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/Kconfig')
-rw-r--r--drivers/iio/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/iio/Kconfig b/drivers/iio/Kconfig
index 103349f2b3b5..612073f6c540 100644
--- a/drivers/iio/Kconfig
+++ b/drivers/iio/Kconfig
@@ -30,6 +30,13 @@ config IIO_KFIFO_BUF
no buffer events so it is up to userspace to work out how
often to read from the buffer.
+config IIO_TRIGGERED_BUFFER
+ tristate
+ select IIO_TRIGGER
+ select IIO_KFIFO_BUF
+ help
+ Provides helper functions for setting up triggered buffers.
+
endif # IIO_BUFFER
config IIO_TRIGGER