summaryrefslogtreecommitdiff
path: root/include/linux/iio
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-10-07 18:11:00 +0400
committerJonathan Cameron <jic23@kernel.org>2013-10-12 15:51:35 +0400
commitec6670ae53c13d767bdb7b3e37755ad661395380 (patch)
treefbe793a33031e7aed145f84d096b7a68cde915cf /include/linux/iio
parent3ea48e01247f07185480e82a79c201df9d905f50 (diff)
downloadlinux-ec6670ae53c13d767bdb7b3e37755ad661395380.tar.xz
iio: Add a hysteresis event info attribute
For some devices it is possible to configure a hysteresis for threshold (or similar) events. This patch adds a new hysteresis event info type which allows for easy creation and read/write handling of the sysfs attribute. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/iio')
-rw-r--r--include/linux/iio/types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/iio/types.h b/include/linux/iio/types.h
index 18339ef4ff5d..4ac928ee31c5 100644
--- a/include/linux/iio/types.h
+++ b/include/linux/iio/types.h
@@ -65,6 +65,7 @@ enum iio_event_type {
enum iio_event_info {
IIO_EV_INFO_ENABLE,
IIO_EV_INFO_VALUE,
+ IIO_EV_INFO_HYSTERESIS,
};
enum iio_event_direction {