From f587852570770564e8a94b2c3f7ad7d97883c49a Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Mon, 13 Nov 2017 12:33:24 -0800 Subject: motion_sense: Put set_range in common code At the end of the sensor initialization, all _init sensor routines set the range to the default value from board.c file. Put all the code in a single place, move it from sensor_common.c to motion_sense.c. BUG=none BRANCH=none TEST=compile Change-Id: If89cf27c6438e0f215c193d68a480e027110174c Signed-off-by: Gwendal Grignou Reviewed-on: https://chromium-review.googlesource.com/767610 Reviewed-by: Shawn N --- driver/accel_lis2dh.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'driver/accel_lis2dh.h') diff --git a/driver/accel_lis2dh.h b/driver/accel_lis2dh.h index 9872ccabe4..3b87ffff8b 100644 --- a/driver/accel_lis2dh.h +++ b/driver/accel_lis2dh.h @@ -8,8 +8,6 @@ #ifndef __CROS_EC_ACCEL_LIS2DH_H #define __CROS_EC_ACCEL_LIS2DH_H -#include "driver/stm_mems_common.h" - #define LIS2DH_I2C_ADDR(__x) (__x << 1) /* 7-bit address is 000110Xb. Where 'X' is determined -- cgit v1.2.1