diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-10-07 16:11:00 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-10-12 13:51:35 +0200 |
commit | ec6670ae53c13d767bdb7b3e37755ad661395380 (patch) | |
tree | fbe793a33031e7aed145f84d096b7a68cde915cf /drivers | |
parent | staging:iio:tsl2x7x: Switch to new event config interface (diff) | |
download | linux-ec6670ae53c13d767bdb7b3e37755ad661395380.tar.xz linux-ec6670ae53c13d767bdb7b3e37755ad661395380.zip |
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 'drivers')
-rw-r--r-- | drivers/iio/industrialio-event.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/industrialio-event.c b/drivers/iio/industrialio-event.c index b7a5d7cbed42..dac15b9f9df8 100644 --- a/drivers/iio/industrialio-event.c +++ b/drivers/iio/industrialio-event.c @@ -204,6 +204,7 @@ static const char * const iio_ev_dir_text[] = { static const char * const iio_ev_info_text[] = { [IIO_EV_INFO_ENABLE] = "en", [IIO_EV_INFO_VALUE] = "value", + [IIO_EV_INFO_HYSTERESIS] = "hysteresis", }; static enum iio_event_direction iio_ev_attr_dir(struct iio_dev_attr *attr) |