diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2020-01-10 00:12:55 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-13 20:35:38 +0000 |
commit | 1e3197dd934a18a5d6bd7f67f1e9c3a5ffe1b1eb (patch) | |
tree | de12bf5edb6d84469ce98eb197fd992ef68c673e /board/treeya | |
parent | af0a64cc36072d283149ea40967cdc3ce71cf52a (diff) | |
download | chrome-ec-1e3197dd934a18a5d6bd7f67f1e9c3a5ffe1b1eb.tar.gz |
board: sensor: remove identity matrices
Use NULL instead of defining an identity matrix.
BUG=none
BRANCH=none
TEST=make buildall
Change-Id: I9aad9f2de162cb10a25ae51561ca4949521a1f9b
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1995023
Reviewed-by: Edward Hill <ecgh@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'board/treeya')
-rw-r--r-- | board/treeya/board.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/board/treeya/board.c b/board/treeya/board.c index b7aad5deaa..8279a76cc6 100644 --- a/board/treeya/board.c +++ b/board/treeya/board.c @@ -59,12 +59,6 @@ static const mat33_fp_t lsm6dsm_base_standard_ref = { { 0, 0, FLOAT_TO_FP(1)} }; -static const mat33_fp_t lis2dwl_lid_standard_ref = { - { FLOAT_TO_FP(1), 0, 0}, - { 0, FLOAT_TO_FP(1), 0}, - { 0, 0, FLOAT_TO_FP(1)} -}; - static const mat33_fp_t treeya_standard_ref = { { 0, FLOAT_TO_FP(-1), 0}, { FLOAT_TO_FP(1), 0, 0}, @@ -82,7 +76,7 @@ struct motion_sensor_t lid_accel_1 = { .drv_data = &g_lis2dwl_data, .port = I2C_PORT_ACCEL, .i2c_spi_addr_flags = LIS2DWL_ADDR1_FLAGS, - .rot_standard_ref = &lis2dwl_lid_standard_ref, + .rot_standard_ref = NULL, .default_range = 2, /* g */ .min_frequency = LIS2DW12_ODR_MIN_VAL, .max_frequency = LIS2DW12_ODR_MAX_VAL, |