diff options
author | Daniel Baluta <daniel.baluta@intel.com> | 2016-04-25 16:15:51 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-05-04 11:43:54 +0100 |
commit | 0f3a8c3f34f728e7c96651bb7271e1c388c9aac2 (patch) | |
tree | ad4c901f99f6245a4221e446ec85ad78ca2e7364 /drivers/iio/Kconfig | |
parent | 0825cce21f764c04a96b719af2b491011bc6c523 (diff) |
iio: Add support for creating IIO devices via configfs
This is similar with support for creating triggers via configfs.
Devices will be hosted under:
* /config/iio/devices
We allow users to register "device types" under:
* /config/iio/devices/<device_types>/
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/Kconfig')
-rw-r--r-- | drivers/iio/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/iio/Kconfig b/drivers/iio/Kconfig index 505e921f0b19..6743b18194fb 100644 --- a/drivers/iio/Kconfig +++ b/drivers/iio/Kconfig @@ -46,6 +46,14 @@ config IIO_CONSUMERS_PER_TRIGGER This value controls the maximum number of consumers that a given trigger may handle. Default is 2. +config IIO_SW_DEVICE + tristate "Enable software IIO device support" + select IIO_CONFIGFS + help + Provides IIO core support for software devices. A software + device can be created via configfs or directly by a driver + using the API provided. + config IIO_SW_TRIGGER tristate "Enable software triggers support" select IIO_CONFIGFS |