]> git.baikalelectronics.ru Git - kernel.git/commit
iio: accel: fxls8962af: add hw buffered sampling
authorSean Nyekjaer <sean@geanix.com>
Thu, 6 May 2021 07:09:39 +0000 (09:09 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 17 May 2021 12:54:24 +0000 (13:54 +0100)
commitb01bf337889393c0ef2d1c8ed81fae0d069fb748
treecf2b8f8dd9667acfde32549d6421fffe99eca14b
parent9f601c8b8fb8ba8020e75799bf0158116bf2e7bd
iio: accel: fxls8962af: add hw buffered sampling

When buffered sampling is enabled, the accelerometer will dump data into
the internal fifo and interrupt at watermark. Then the driver flushes
all data to the iio buffer.
As the accelerometer doesn't have internal timestamps, they are
approximated between the current and last interrupt.

Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/fxls8962af-core.c