iio: imu: st_lsm6dsx: fix gyro gain definitions for LSM9DS1
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 7 Oct 2019 09:12:13 +0000 (11:12 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 15 Oct 2019 20:11:07 +0000 (21:11 +0100)
Fix typos in gyro gain definitions for LSM9DS1 sensor

Fixes: 52f4b1f19679 ("iio: imu: st_lsm6dsx: add support for accel/gyro unit of lsm9ds1")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c

index b0f52506623721e2356fc137f8364f3c97787d5d..35b74311e0c64674aea6495a986b642e9f22bf26 100644 (file)
@@ -161,9 +161,10 @@ static const struct st_lsm6dsx_settings st_lsm6dsx_sensor_settings[] = {
                                        .addr = 0x10,
                                        .mask = GENMASK(4, 3),
                                },
-                               .fs_avl[0] = {  IIO_DEGREE_TO_RAD(245), 0x0 },
-                               .fs_avl[1] = {  IIO_DEGREE_TO_RAD(500), 0x1 },
-                               .fs_avl[2] = { IIO_DEGREE_TO_RAD(2000), 0x3 },
+
+                               .fs_avl[0] = {  IIO_DEGREE_TO_RAD(8750), 0x0 },
+                               .fs_avl[1] = { IIO_DEGREE_TO_RAD(17500), 0x1 },
+                               .fs_avl[2] = { IIO_DEGREE_TO_RAD(70000), 0x3 },
                                .fs_len = 3,
                        },
                },