iio: imu: st_lsm6dsx: move odr_table in st_lsm6dsx_sensor_settings
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 29 Jul 2019 19:22:28 +0000 (21:22 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 5 Aug 2019 13:58:07 +0000 (14:58 +0100)
commit40dd7343897760c4b617faa78d213e25652de9a6
tree18973bb01b1545b77d9dc67cc1adc5316234ef1e
parentdff38165a5a873741c67e728f80d5e923852cc67
iio: imu: st_lsm6dsx: move odr_table in st_lsm6dsx_sensor_settings

Move sensor odr table in st_lsm6dsx_sensor_settings in order to support
sensors with different odr maps. This is a preliminary patch to add
support for LSM9DS1 sensor to st_lsm6dsx driver

Tested-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c