From e0a2a98b69a06fa56b30a88e87d9720c0cd2b533 Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Tue, 13 Mar 2018 10:37:56 -0700 Subject: driver: sensor: Remove set_resolution when NOOP set_resolution is only used for few sensors and is not exposed to the AP. Remove definition when sensors have a fixed resolution. BUG=none BRANCH=master TEST=compile, kevin has enough space for perform_calib. Change-Id: I8482387e135356467edaee44da3a0e47cf1db524 Signed-off-by: Gwendal Grignou Reviewed-on: https://chromium-review.googlesource.com/961222 Reviewed-by: Aseda Aboagye --- driver/accelgyro_lsm6ds0.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'driver/accelgyro_lsm6ds0.c') diff --git a/driver/accelgyro_lsm6ds0.c b/driver/accelgyro_lsm6ds0.c index 86232f93e6..cf2eb78ff4 100644 --- a/driver/accelgyro_lsm6ds0.c +++ b/driver/accelgyro_lsm6ds0.c @@ -209,14 +209,6 @@ static int get_range(const struct motion_sensor_t *s) return data->base.range; } -static int set_resolution(const struct motion_sensor_t *s, - int res, - int rnd) -{ - /* Only one resolution, LSM6DS0_RESOLUTION, so nothing to do. */ - return EC_SUCCESS; -} - static int get_resolution(const struct motion_sensor_t *s) { return LSM6DS0_RESOLUTION; @@ -427,7 +419,6 @@ const struct accelgyro_drv lsm6ds0_drv = { .read = read, .set_range = set_range, .get_range = get_range, - .set_resolution = set_resolution, .get_resolution = get_resolution, .set_data_rate = set_data_rate, .get_data_rate = get_data_rate, -- cgit v1.2.1