From 1e3197dd934a18a5d6bd7f67f1e9c3a5ffe1b1eb Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Fri, 10 Jan 2020 00:12:55 -0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1995023 Reviewed-by: Edward Hill Reviewed-by: Jack Rosenthal --- board/kohaku/board.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'board/kohaku') 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. */ -- cgit v1.2.1