diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2014-09-23 11:18:14 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-09-25 04:09:07 +0000 |
commit | 7be8ff812ba802575be45e769d5ad833159b063a (patch) | |
tree | e526a8f37048dc73441df5b1373e0097c11256d1 /board/host | |
parent | 68704fea5f3f62ec3f5bb99fb4b5898781414aca (diff) | |
download | chrome-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')
-rw-r--r-- | board/host/board.c | 5 | ||||
-rw-r--r-- | board/host/board.h | 1 |
2 files changed, 1 insertions, 5 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}, diff --git a/board/host/board.h b/board/host/board.h index 19890b6504..3c11f58b8f 100644 --- a/board/host/board.h +++ b/board/host/board.h @@ -9,7 +9,6 @@ #define __BOARD_H /* Optional features */ -#undef CONFIG_ACCEL_CALIBRATE #define CONFIG_EXTPOWER_GPIO #undef CONFIG_FMAP #define CONFIG_POWER_BUTTON |