OSDN Git Service

iio: imu: st_lsm6dsx: add addr/max_word_len to st_lsm6dsx_read_block()
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Thu, 30 Aug 2018 20:52:57 +0000 (22:52 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 2 Sep 2018 20:29:24 +0000 (21:29 +0100)
commit5b3c87fd92d5ef462b9b3894f4d4bc452ad7eff4
tree23d69ea5ca80809e098783b99daf675bbfa32644
parent54a6d0c6882df3608103042eed7f57e6188f95ca
iio: imu: st_lsm6dsx: add addr/max_word_len to st_lsm6dsx_read_block()

Add reg addr and max_word_len parameters to st_lsm6dsx_read_block
since LSM6DSO will use a different register address to read samples
from the FIFO and a different sample len

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c