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 | |
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')
-rw-r--r-- | common/gesture.c | 2 | ||||
-rw-r--r-- | common/motion_lid.c | 6 |
2 files changed, 5 insertions, 3 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 */ diff --git a/common/motion_lid.c b/common/motion_lid.c index 0dfb8763d7..7bf2c66ac0 100644 --- a/common/motion_lid.c +++ b/common/motion_lid.c @@ -47,8 +47,10 @@ static int lid_angle_is_reliable; /* Pointer to constant acceleration orientation data. */ const struct accel_orientation * const p_acc_orient = &acc_orient; -struct motion_sensor_t *accel_base = &motion_sensors[CONFIG_SENSOR_BASE]; -struct motion_sensor_t *accel_lid = &motion_sensors[CONFIG_SENSOR_LID]; +struct motion_sensor_t *accel_base = + &motion_sensors[CONFIG_LID_ANGLE_SENSOR_BASE]; +struct motion_sensor_t *accel_lid = + &motion_sensors[CONFIG_LID_ANGLE_SENSOR_LID]; /** * Calculate the lid angle using two acceleration vectors, one recorded in |