summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2019-05-20 12:47:31 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-05-21 14:20:35 -0700
commite433b0068bab11910236043882de5dfd8b798bc1 (patch)
treea13c38003ef679dbb27e315f896a538fceaef68e /driver
parent626c64717ccac1351dd5cd614341238b3ec8ab1b (diff)
downloadchrome-ec-e433b0068bab11910236043882de5dfd8b798bc1.tar.gz
FIXUP: driver: Add L3GD20H gyrometer basic driver support
set_data_rate() was called with wrong argument and is not necessary. set_range is called by motion_sensor_init. BUG=none TEST=compile BRANCH=none Change-Id: Ia21911a0d6361e819a8bf381918740f189496c59 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1620692 Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Reviewed-by: Enrico Granata <egranata@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r--driver/gyro_l3gd20h.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/driver/gyro_l3gd20h.c b/driver/gyro_l3gd20h.c
index d7d3663ab2..44ee89c9a3 100644
--- a/driver/gyro_l3gd20h.c
+++ b/driver/gyro_l3gd20h.c
@@ -385,11 +385,6 @@ static int init(const struct motion_sensor_t *s)
if (ret)
return ret;
- /* Config GYRO ODR */
- ret = set_data_rate(s, s->default_range, 1);
- if (ret)
- return ret;
-
return sensor_init_done(s);
}