iio: core : events ABI for specifying period
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Thu, 7 Aug 2014 22:29:00 +0000 (23:29 +0100)
committerJonathan Cameron <jic23@kernel.org>
Fri, 11 Jul 2014 20:20:59 +0000 (21:20 +0100)
commit77a533c73f032050be8b447828358a228a0a5736
treea86aefb2b3567942006bda9e9e7fab741c0d91cb
parent2d7768a872b73a7105d6355948dae0acff72f061
iio: core : events ABI for specifying period

The iio sysfs ABI defines a way to specify period for roc and thresholds.
What: /sys/.../events/in_accel_x_thresh_rising_period
What: /sys/.../events/in_accel_x_thresh_falling_period
what: /sys/.../events/in_accel_x_roc_rising_period
What: /sys/.../events/in_accel_x_roc_falling_period

But there is no way to add period with the current event info enum.

Added IIO_EV_INFO_PERIOD and corresponding string.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-event.c
include/linux/iio/types.h