summaryrefslogtreecommitdiff
path: root/common/gesture.c
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2020-10-20 16:52:49 -0700
committerCommit Bot <commit-bot@chromium.org>2020-11-06 01:43:10 +0000
commit6ff3be3921c19c00826252c685d9cb29d8c37bd4 (patch)
tree9395b4bfd0ba7fd50c1baed2d4d1303a180213e3 /common/gesture.c
parent851daf728dca124f4bb2b6d27238d3952be5cf2b (diff)
downloadchrome-ec-6ff3be3921c19c00826252c685d9cb29d8c37bd4.tar.gz
motion: Use empty CONFIG_ variable to use IS_ENABLED()
Split information in a boolean variable and another variable that contains a property. For instance, CONFIG_GESTURE_SENSOR_DOUBLE_TAP becomes: CONFIG_GESTURE_SENSOR_DOUBLE_TAP : boolean variable CONFIG_GESTURE_TAP_SENSOR : property that contains the sensor number. BUG=chromium:1140877 BRANCH=none TEST=buildall Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Change-Id: I27ba462f8a12b14882104b9f983f2dc17f917314 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2488937
Diffstat (limited to 'common/gesture.c')
-rw-r--r--common/gesture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/gesture.c b/common/gesture.c
index 86039e33bb..88d79448a5 100644
--- a/common/gesture.c
+++ b/common/gesture.c
@@ -67,7 +67,7 @@ enum tap_states {
/* Tap sensor to use */
static struct motion_sensor_t *sensor =
-&motion_sensors[CONFIG_GESTURE_SENSOR_DOUBLE_TAP];
+&motion_sensors[CONFIG_GESTURE_TAP_SENSOR];
/* Tap state information */
static int history_z[MAX_WINDOW]; /* Changes in Z */