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)
commit79e3a5bdd9efbdf4e1069793d7735b432d641e7c
treecf2b8f8dd9667acfde32549d6421fffe99eca14b
parent9ab2c60e6b26034b90d3bd446bca3dc8b157f61a
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