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 /driver/gyro_l3gd20h.c | |
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 'driver/gyro_l3gd20h.c')
-rw-r--r-- | driver/gyro_l3gd20h.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/driver/gyro_l3gd20h.c b/driver/gyro_l3gd20h.c index 53ee98961f..2c7e9b11da 100644 --- a/driver/gyro_l3gd20h.c +++ b/driver/gyro_l3gd20h.c @@ -177,14 +177,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, L3GD20_RESOLUTION, so nothing to do. */ - return EC_SUCCESS; -} - static int get_resolution(const struct motion_sensor_t *s) { return L3GD20_RESOLUTION; @@ -409,11 +401,9 @@ const struct accelgyro_drv l3gd20h_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, .set_offset = set_offset, .get_offset = get_offset, - .perform_calib = NULL, }; |