summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2018-02-16 10:52:52 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2018-05-30 00:02:56 +0000
commit733536807432f8756ef9406e122c8956531782d3 (patch)
tree612b73da589169d0f95762c34de0370d1055cd8e
parentff3f1d2632657883a16c42fe4d640ed12a358b35 (diff)
downloadchrome-ec-733536807432f8756ef9406e122c8956531782d3.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> (cherry picked from commit eb50aaded727acfaf6b8521bde325976f374a3a2) Reviewed-on: https://chromium-review.googlesource.com/1077553 Commit-Queue: Alexandru M Stan <amstan@chromium.org> Commit-Queue: Philip Chen <philipchen@chromium.org> Tested-by: Alexandru M Stan <amstan@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org> Trybot-Ready: Alexandru M Stan <amstan@chromium.org> Reviewed-by: Philip Chen <philipchen@chromium.org>
-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.