]> asedeno.scripts.mit.edu Git - linux.git/commit
iio: imu: st_lsm6dsx: add read_fifo callback to fifo_ops
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Thu, 30 Aug 2018 20:52:55 +0000 (22:52 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 2 Sep 2018 20:26:38 +0000 (21:26 +0100)
commit50ff457d1b321d6392ade6bcc67877b8b4aeef89
treed5d11950fc5e8f2cf408d75ad5f5c05dbdaf18fa
parentff5059302642d349596a7ebc3282a978a78144bd
iio: imu: st_lsm6dsx: add read_fifo callback to fifo_ops

Remove static qualifier from st_lsm6dsx_read_fifo definition and
introduce read_fifo function pointer in fifo_ops data structure
in order to run the proper read_fifo routine since other compliant
devices will use a different FIFO queueing scheme.

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.h
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c