summaryrefslogtreecommitdiff
path: root/common/motion_lid.c
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2015-04-30 14:27:14 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-05-01 20:46:37 +0000
commit99737a2fefa7eab7c63cddd31bea7afdf717620c (patch)
tree3b1ef209dff9a17040cc1a997542a4dc77262fd5 /common/motion_lid.c
parent6dce2424d99de40763a039eb099efcd5b0a52cb2 (diff)
downloadchrome-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/motion_lid.c')
-rw-r--r--common/motion_lid.c6
1 files changed, 4 insertions, 2 deletions
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