summaryrefslogtreecommitdiff
path: root/drivers/staging/iio/Kconfig
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@cam.ac.uk>2011-10-14 16:34:14 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-17 15:36:30 -0700
commite6477000fced2c961c26fa42845bd388fdf95e79 (patch)
treeb3705a6ec07cc46e786c5e1087576d4053085f9f /drivers/staging/iio/Kconfig
parent3a84331db23b4cb4c497ef5aa5f7aea65d936309 (diff)
staging:iio:dummy Add event support + fake event generator
The event generator is not very pretty but does the job and allows this driver to look a lot more like a normal driver than it otherwise would. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/Kconfig')
-rw-r--r--drivers/staging/iio/Kconfig20
1 files changed, 17 insertions, 3 deletions
diff --git a/drivers/staging/iio/Kconfig b/drivers/staging/iio/Kconfig
index 0accc21d4e91..75128a0480c0 100644
--- a/drivers/staging/iio/Kconfig
+++ b/drivers/staging/iio/Kconfig
@@ -70,12 +70,26 @@ source "drivers/staging/iio/meter/Kconfig"
source "drivers/staging/iio/resolver/Kconfig"
source "drivers/staging/iio/trigger/Kconfig"
+config IIO_DUMMY_EVGEN
+ tristate
+
config IIO_SIMPLE_DUMMY
tristate "An example driver with no hardware requirements"
+ select IIO_SIMPLE_DUMMY_EVGEN if IIO_SIMPLE_DUMMY_EVENTS
help
- Driver intended mainly as documentation for how to write
- a driver. May also be useful for testing userspace code
- without hardward.
+ Driver intended mainly as documentation for how to write
+ a driver. May also be useful for testing userspace code
+ without hardward.
+
+if IIO_SIMPLE_DUMMY
+
+config IIO_SIMPLE_DUMMY_EVENTS
+ boolean "Event generation support"
+ select IIO_DUMMY_EVGEN
+ help
+ Add some dummy events to the simple dummy driver.
+
+endif # IIO_SIMPLE_DUMMY
endif # IIO