]> asedeno.scripts.mit.edu Git - linux.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)
commit59af4e206365d38fe78a94852f1f9c28f4f92c9d
tree8d4e6dc22ed53046c81b40da2ac88cbb5ca3a782
parentcb7e1b50e4e382c2c63ac0c80260db55c3a3c7ee
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