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/kohaku | |
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/kohaku')
-rw-r--r-- | board/kohaku/board.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/board/kohaku/board.c b/board/kohaku/board.c index 144c316806..0afbf6eaf0 100644 --- a/board/kohaku/board.c +++ b/board/kohaku/board.c @@ -228,17 +228,6 @@ static const mat33_fp_t base_standard_ref = { { 0, 0, FLOAT_TO_FP(1)} }; -/* - * TODO(b/124337208): P0 boards don't have this sensor mounted so the rotation - * matrix can't be tested properly. This needs to be revisited after EVT to make - * sure the rotaiton matrix for the lid sensor is correct. - */ -static const mat33_fp_t lid_standard_ref = { - { FLOAT_TO_FP(1), 0, 0}, - { 0, FLOAT_TO_FP(1), 0}, - { 0, 0, FLOAT_TO_FP(1)} -}; - struct motion_sensor_t motion_sensors[] = { [LID_ACCEL] = { .name = "Lid Accel", @@ -251,7 +240,7 @@ struct motion_sensor_t motion_sensors[] = { .drv_data = &g_bma255_data, .port = I2C_PORT_ACCEL, .i2c_spi_addr_flags = BMA2x2_I2C_ADDR1_FLAGS, - .rot_standard_ref = &lid_standard_ref, + .rot_standard_ref = NULL, .min_frequency = BMA255_ACCEL_MIN_FREQ, .max_frequency = BMA255_ACCEL_MAX_FREQ, .default_range = 2, /* g, to support lid angle calculation. */ |