blob: 90b1d836158729904e86c7271b2d6a73d9456bfc [file] [log] [blame]
From 941c0cd325fcedf062b72cfc7bf7bdb6b3ef6acd Mon Sep 17 00:00:00 2001
From: Gwendal Grignou <gwendal@chromium.org>
Date: Tue, 8 Sep 2015 09:46:08 -0700
Subject: [PATCH] CHROMIUM: iio: core: Add double tap gesture
Add double tap as possible gesture.
This is an inteface change: however, the sysfs entry is based on string,
so if other gestures are added on the trunk in the meantime, we will
still be able to merge this change.
BUG=chrome-os-partner:44754
TEST=compile. Check with cros_iio_activity driver.
Change-Id: I7700b02a8172b59975f8c1eda3e4e3b6d1b93508
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/297838
[rebase66(tzungbi): Revised commit message.]
Signed-off-by: Tzung-Bi Shih <tzungbi@chromium.org>
---
drivers/iio/industrialio-core.c | 1 +
include/uapi/linux/iio/types.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index 173dc00762a152e414feac8f1d8d626e01d4bde8..1986a609171012639bd9777fcb5091eb9194147e 100644
--- a/drivers/iio/industrialio-core.c
+++ b/drivers/iio/industrialio-core.c
@@ -149,6 +149,7 @@ static const char * const iio_modifier_names[] = {
[IIO_MOD_PITCH] = "pitch",
[IIO_MOD_YAW] = "yaw",
[IIO_MOD_ROLL] = "roll",
+ [IIO_MOD_DOUBLE_TAP] = "double_tap",
};
/* relies on pairs of these shared then separate */
diff --git a/include/uapi/linux/iio/types.h b/include/uapi/linux/iio/types.h
index f2e0b2d50e6b5ffadd52ced37e8a1e36999c9d97..5dece5ea9eae57b0db4db9cd16e6c7df558b6590 100644
--- a/include/uapi/linux/iio/types.h
+++ b/include/uapi/linux/iio/types.h
@@ -107,6 +107,7 @@ enum iio_modifier {
IIO_MOD_ROLL,
IIO_MOD_LIGHT_UVA,
IIO_MOD_LIGHT_UVB,
+ IIO_MOD_DOUBLE_TAP,
};
enum iio_event_type {
--
2.44.0.rc0.258.g7320e95886-goog