diff options
author | Bill Richardson <wfrichar@chromium.org> | 2015-04-30 14:27:14 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-05-01 20:46:37 +0000 |
commit | 99737a2fefa7eab7c63cddd31bea7afdf717620c (patch) | |
tree | 3b1ef209dff9a17040cc1a997542a4dc77262fd5 /common/gesture.c | |
parent | 6dce2424d99de40763a039eb099efcd5b0a52cb2 (diff) | |
download | chrome-ec-99737a2fefa7eab7c63cddd31bea7afdf717620c.tar.gz |
cleanup: rename motion sensor CONFIG_ options
This renames some motion sensor options to start with more
consistent prefixes.
For gesture (tap) detection:
CONFIG_GESTURE_DETECTION:
CONFIG_SENSOR_BATTERY_TAP => CONFIG_GESTURE_SENSOR_BATTERY_TAP
For detecting lid angle:
CONFIG_LID_ANGLE:
CONFIG_SENSOR_BASE => CONFIG_LID_ANGLE_SENSOR_BASE
CONFIG_SENSOR_LID => CONFIG_LID_ANGLE_SENSOR_LID
BUG=none
BRANCH=none
TEST=make buildall
Change-Id: Ib8f645902a5585346e1d8d2cbf73d825c896a521
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/268777
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'common/gesture.c')
-rw-r--r-- | common/gesture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/gesture.c b/common/gesture.c index 5c79d04097..ed4443c741 100644 --- a/common/gesture.c +++ b/common/gesture.c @@ -73,7 +73,7 @@ enum tap_states { /* Tap sensor to use */ static struct motion_sensor_t *sensor = -&motion_sensors[CONFIG_SENSOR_BATTERY_TAP]; +&motion_sensors[CONFIG_GESTURE_SENSOR_BATTERY_TAP]; /* Tap state information */ static int history_z[MAX_WINDOW]; /* Changes in Z */ |