aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/sysfs.h
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@cam.ac.uk>2010-10-08 12:14:03 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-08 07:17:52 -0700
commitde9fe32afcef9f84925cfb3e93074843df1d185b (patch)
treed5e70dbb5cafd68d77118c7a2c94b532a95a6eb2 /drivers/staging/iio/sysfs.h
parent18e69a9904b4f12d8afe34b9313c8942acc4d73c (diff)
downloadkernel_samsung_smdk4412-de9fe32afcef9f84925cfb3e93074843df1d185b.zip
kernel_samsung_smdk4412-de9fe32afcef9f84925cfb3e93074843df1d185b.tar.gz
kernel_samsung_smdk4412-de9fe32afcef9f84925cfb3e93074843df1d185b.tar.bz2
staging: iio: sca3000 move to new event code scheme and add combined orientations
The combined orientations allow handling of typical motion and free fall detectors to be handled as threshold events just applied to a number of axes via boolean operations. So freefall is when x, y and z magnitudes are all below a threshold for a particular period. Motion detectors are typically whether x or y or z are above a particular value. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/sysfs.h')
-rw-r--r--drivers/staging/iio/sysfs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/staging/iio/sysfs.h b/drivers/staging/iio/sysfs.h
index 491c904..2064009 100644
--- a/drivers/staging/iio/sysfs.h
+++ b/drivers/staging/iio/sysfs.h
@@ -260,6 +260,14 @@ struct iio_const_attr {
#define IIO_EV_MOD_X 0
#define IIO_EV_MOD_Y 1
#define IIO_EV_MOD_Z 2
+#define IIO_EV_MOD_X_AND_Y 3
+#define IIO_EV_MOD_X_ANX_Z 4
+#define IIO_EV_MOD_Y_AND_Z 5
+#define IIO_EV_MOD_X_AND_Y_AND_Z 6
+#define IIO_EV_MOD_X_OR_Y 7
+#define IIO_EV_MOD_X_OR_Z 8
+#define IIO_EV_MOD_Y_OR_Z 9
+#define IIO_EV_MOD_X_OR_Y_OR_Z 10
#define IIO_EV_TYPE_THRESH 0
#define IIO_EV_TYPE_MAG 1