diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2019-08-27 04:29:06 -0400 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-09-03 16:11:28 -0400 |
commit | 6fa029486b74c266c39b718b8643ed42d24f977a (patch) | |
tree | 94189d93f35217068fc13b6ff7beecb7f8eb0c57 | |
parent | 0f7e17286b451ca6f41497b86c8c15de480e75d7 (diff) |
iio: imu: st_lsm6dsx: rely on IIO_G_TO_M_S_2 for gain definition for LSM9DS1
Rely on IIO_G_TO_M_S_2 macro for LSM9DS1 accelerometer gain definitions
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r-- | drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c index c85c8be3a024..2d3495560136 100644 --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | |||
@@ -141,10 +141,10 @@ static const struct st_lsm6dsx_settings st_lsm6dsx_sensor_settings[] = { | |||
141 | .addr = 0x20, | 141 | .addr = 0x20, |
142 | .mask = GENMASK(4, 3), | 142 | .mask = GENMASK(4, 3), |
143 | }, | 143 | }, |
144 | .fs_avl[0] = { 599, 0x0 }, | 144 | .fs_avl[0] = { IIO_G_TO_M_S_2(61), 0x0 }, |
145 | .fs_avl[1] = { 1197, 0x2 }, | 145 | .fs_avl[1] = { IIO_G_TO_M_S_2(122), 0x2 }, |
146 | .fs_avl[2] = { 2394, 0x3 }, | 146 | .fs_avl[2] = { IIO_G_TO_M_S_2(244), 0x3 }, |
147 | .fs_avl[3] = { 4788, 0x1 }, | 147 | .fs_avl[3] = { IIO_G_TO_M_S_2(732), 0x1 }, |
148 | }, | 148 | }, |
149 | [ST_LSM6DSX_ID_GYRO] = { | 149 | [ST_LSM6DSX_ID_GYRO] = { |
150 | .reg = { | 150 | .reg = { |