summaryrefslogtreecommitdiff
path: root/include/accelgyro.h
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2018-02-16 10:52:52 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-03-08 17:01:10 -0800
commiteb50aaded727acfaf6b8521bde325976f374a3a2 (patch)
tree5ff794f5eaa47fc5c6f8ba19889d10c9a96ddedb /include/accelgyro.h
parent52c3a72b736eab4344d3eb10079af06fa05ac2b4 (diff)
downloadchrome-ec-eb50aaded727acfaf6b8521bde325976f374a3a2.tar.gz
motion: driver: Fix activity inclusion in accelgyro.h
list/add_activities should be include even when FIFO support is not compiled it, when the host is not asking for them, as it is needed for double tap support. BUG=b:73546254 BRANCH=master TEST=Compile when just CONFIG_GESTURE_DETECTION is defined. Change-Id: Icec7ccec7fd8463ea40afbe05ce1e177ae7d609d Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/924404 Commit-Ready: Gwendal Grignou <gwendal@google.com> Tested-by: Gwendal Grignou <gwendal@google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Gwendal Grignou <gwendal@google.com>
Diffstat (limited to 'include/accelgyro.h')
-rw-r--r--include/accelgyro.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/accelgyro.h b/include/accelgyro.h
index f78af2bb90..85e4bcc04a 100644
--- a/include/accelgyro.h
+++ b/include/accelgyro.h
@@ -115,7 +115,7 @@ struct accelgyro_drv {
*/
int (*load_fifo)(struct motion_sensor_t *s);
#endif
-#ifdef CONFIG_GESTURE_HOST_DETECTION
+#ifdef CONFIG_GESTURE_DETECTION
/**
* handler for setting/getting activity information.
* Manage the high level activity detection of the chip.