diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2018-03-13 10:37:56 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-03-15 21:23:30 -0700 |
commit | e0a2a98b69a06fa56b30a88e87d9720c0cd2b533 (patch) | |
tree | 2c19ceb78f228e684710e2c7d22e544eccd0cd3e /test | |
parent | c63bb63b5a8a23d81b3c96adbb0c361a4c1af255 (diff) | |
download | chrome-ec-e0a2a98b69a06fa56b30a88e87d9720c0cd2b533.tar.gz |
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 <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/961222
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/motion_lid.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/test/motion_lid.c b/test/motion_lid.c index bed03379ff..adb4636e33 100644 --- a/test/motion_lid.c +++ b/test/motion_lid.c @@ -59,13 +59,6 @@ static int accel_get_range(const struct motion_sensor_t *s) return 0; } -static int accel_set_resolution(const struct motion_sensor_t *s, - const int res, - const int rnd) -{ - return EC_SUCCESS; -} - static int accel_get_resolution(const struct motion_sensor_t *s) { return 0; @@ -91,7 +84,6 @@ const struct accelgyro_drv test_motion_sense = { .read = accel_read, .set_range = accel_set_range, .get_range = accel_get_range, - .set_resolution = accel_set_resolution, .get_resolution = accel_get_resolution, .set_data_rate = accel_set_data_rate, .get_data_rate = accel_get_data_rate, |