summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2016-08-09 12:30:47 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2016-11-22 00:00:35 +0000
commit4df4aa952cbff27fd74dc0a9f02dd433ac4a380a (patch)
tree0b577b323f0908edf72ee73b6a65907bfe75bd9a
parent7c7bc1ad83185f2ea355184aa74d1cf537e25654 (diff)
downloadchrome-ec-4df4aa952cbff27fd74dc0a9f02dd433ac4a380a.tar.gz
UPSTREAM: motion: use proper define for gesture support.
_FIFO was too general, use the right define. BRANCH=samus, veyron BUG=b:27849483, b:27849483 TEST=Compile when GESTURE is not defined. Change-Id: I0c1e9b3de0e322f40f955af6ce2e51a6775f389d Signed-off-by: Gwendal Grignou <gwendal@chromium.org> (cherry picked from commit 948c7510baddfc1011e5998ffc8a1f310b3961f6) Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/378326
-rw-r--r--common/motion_sense.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/motion_sense.c b/common/motion_sense.c
index a5d24a7daf..7dae82b412 100644
--- a/common/motion_sense.c
+++ b/common/motion_sense.c
@@ -708,7 +708,7 @@ void motion_sense_task(void)
#endif
#ifdef CONFIG_GESTURE_SENSOR_BATTERY_TAP
if (event & CONFIG_GESTURE_TAP_EVENT) {
-#ifdef CONFIG_ACCEL_FIFO
+#ifdef CONFIG_GESTURE_HOST_DETECTION
struct ec_response_motion_sensor_data vector;
/*
@@ -729,7 +729,7 @@ void motion_sense_task(void)
#ifdef CONFIG_GESTURE_SIGMO
if (event & CONFIG_GESTURE_SIGMO_EVENT) {
struct motion_sensor_t *activity_sensor;
-#ifdef CONFIG_ACCEL_FIFO
+#ifdef CONFIG_GESTURE_HOST_DETECTION
struct ec_response_motion_sensor_data vector;
/* Send events to the FIFO */