diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2016-12-02 15:53:57 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-12-05 16:43:19 -0800 |
commit | 36bfc6ad9ab9cacf06b5fbaa9a3d11f1aa440701 (patch) | |
tree | dbe9d6ac1de853454d80e745c10ebeeb63577579 /board/reef/board.c | |
parent | 3d4bb5f64917ab25f3538a8ec8c6410f41f46afd (diff) | |
download | chrome-ec-36bfc6ad9ab9cacf06b5fbaa9a3d11f1aa440701.tar.gz |
Revert "reef: Add matrix for lid accelerometer."
The new reef form-factor, Electro, has the lid accelerometer on the
reversed side. Undo the matrix setting.
BUG=chrome-os-partner:60477
BRANCH=reef
TEST=compile, check on reef the value are incorrect.
This reverts commit 430dd5e644fb5695848b587cb407d34704bb7ef0.
Change-Id: I0a0efc89f0fad6cce3720836caf2c52bdb7e2b8d
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/416390
Tested-by: Ryan Zhang <ryan.zhang.quanta@gmail.com>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'board/reef/board.c')
-rw-r--r-- | board/reef/board.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/board/reef/board.c b/board/reef/board.c index c2a97d1689..127e167a08 100644 --- a/board/reef/board.c +++ b/board/reef/board.c @@ -760,12 +760,6 @@ static struct mutex g_lid_mutex; static struct mutex g_base_mutex; /* Matrix to rotate accelrator into standard reference frame */ -const matrix_3x3_t lid_standard_ref = { - { FLOAT_TO_FP(1), 0, 0}, - { 0, FLOAT_TO_FP(-1), 0}, - { 0, 0, FLOAT_TO_FP(-1)} -}; - const matrix_3x3_t base_standard_ref = { { 0, FLOAT_TO_FP(-1), 0}, { FLOAT_TO_FP(1), 0, 0}, @@ -794,7 +788,7 @@ struct motion_sensor_t motion_sensors[] = { .drv_data = &g_kx022_data, .port = I2C_PORT_LID_ACCEL, .addr = KX022_ADDR1, - .rot_standard_ref = &lid_standard_ref, + .rot_standard_ref = NULL, /* Identity matrix. */ .default_range = 2, /* g, enough for laptop. */ .config = { /* AP: by default use EC settings */ |