]> git.baikalelectronics.ru Git - kernel.git/commit
iio: imu: st_lsm6dsx: explicitly define odr table size
authorLorenzo Bianconi <lorenzo@kernel.org>
Sun, 3 Nov 2019 19:47:17 +0000 (20:47 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 9 Nov 2019 13:10:59 +0000 (13:10 +0000)
commit3b49fd500952b09c1572fdacc5959ffd417e3a21
tree8d4e6dc22ed53046c81b40da2ac88cbb5ca3a782
parente9163c9dd0a87cce89391b41050055a4acb42a12
iio: imu: st_lsm6dsx: explicitly define odr table size

Introduce odr_len in st_lsm6dsx_odr_table_entry data structure in order
to explicitly define odr table size and support devices with different
odr table map

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
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c