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 --- baseboard/grunt/baseboard.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'baseboard/grunt/baseboard.c') diff --git a/baseboard/grunt/baseboard.c b/baseboard/grunt/baseboard.c index 0726312706..7c79c2abf5 100644 --- a/baseboard/grunt/baseboard.c +++ b/baseboard/grunt/baseboard.c @@ -547,18 +547,6 @@ BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT); static struct mutex g_lid_mutex; static struct mutex g_base_mutex; -mat33_fp_t grunt_base_standard_ref = { - { FLOAT_TO_FP(1), 0, 0}, - { 0, FLOAT_TO_FP(1), 0}, - { 0, 0, FLOAT_TO_FP(1)} -}; - -mat33_fp_t lid_standard_ref = { - { FLOAT_TO_FP(1), 0, 0}, - { 0, FLOAT_TO_FP(1), 0}, - { 0, 0, FLOAT_TO_FP(1)} -}; - /* sensor private data */ static struct kionix_accel_data g_kx022_data; static struct bmi160_drv_data_t g_bmi160_data; @@ -576,7 +564,7 @@ struct motion_sensor_t motion_sensors[] = { .drv_data = &g_kx022_data, .port = I2C_PORT_SENSOR, .i2c_spi_addr_flags = KX022_ADDR1_FLAGS, - .rot_standard_ref = (const mat33_fp_t *)&lid_standard_ref, + .rot_standard_ref = NULL, .default_range = 2, /* g, enough for laptop. */ .min_frequency = KX022_ACCEL_MIN_FREQ, .max_frequency = KX022_ACCEL_MAX_FREQ, @@ -605,7 +593,7 @@ struct motion_sensor_t motion_sensors[] = { .port = I2C_PORT_SENSOR, .i2c_spi_addr_flags = BMI160_ADDR0_FLAGS, .default_range = 2, /* g, enough for laptop */ - .rot_standard_ref = (const mat33_fp_t *)&grunt_base_standard_ref, + .rot_standard_ref = NULL, .min_frequency = BMI160_ACCEL_MIN_FREQ, .max_frequency = BMI160_ACCEL_MAX_FREQ, .config = { @@ -633,7 +621,7 @@ struct motion_sensor_t motion_sensors[] = { .port = I2C_PORT_SENSOR, .i2c_spi_addr_flags = BMI160_ADDR0_FLAGS, .default_range = 1000, /* dps */ - .rot_standard_ref = (const mat33_fp_t *)&grunt_base_standard_ref, + .rot_standard_ref = NULL, .min_frequency = BMI160_GYRO_MIN_FREQ, .max_frequency = BMI160_GYRO_MAX_FREQ, }, -- cgit v1.2.1