summaryrefslogtreecommitdiff
path: root/board/host/board.c
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2014-09-23 11:18:14 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-09-25 04:09:07 +0000
commit7be8ff812ba802575be45e769d5ad833159b063a (patch)
treee526a8f37048dc73441df5b1373e0097c11256d1 /board/host/board.c
parent68704fea5f3f62ec3f5bb99fb4b5898781414aca (diff)
downloadchrome-ec-7be8ff812ba802575be45e769d5ad833159b063a.tar.gz
[common]: Remove accelerator calibration code.
This code is used to find the orientation of the sensor. Given sensor are aligned with the edges of the device, it is not too dificult to find manually. BRANCH=ToT BUG=None TEST=Check ACCEL_CALIBRATE is not used anymore. Check 'make buildall -j' works. Change-Id: I81ffcb4f6b01c530ef16baf13113a5942f615092 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/219527 Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'board/host/board.c')
-rw-r--r--board/host/board.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/board/host/board.c b/board/host/board.c
index 8c70053ac2..c43a36ae8b 100644
--- a/board/host/board.c
+++ b/board/host/board.c
@@ -53,10 +53,7 @@ BUILD_ASSERT(ARRAY_SIZE(buttons) == CONFIG_BUTTON_COUNT);
#endif
/* Define the accelerometer orientation matrices. */
-#ifndef CONFIG_ACCEL_CALIBRATE
-const
-#endif
-struct accel_orientation acc_orient = {
+const struct accel_orientation acc_orient = {
/* Lid and base sensor are already aligned. */
.rot_align = {
{ 1, 0, 0},