iio:adxl372: Add FIFO and interrupts support
authorStefan Popa <stefan.popa@analog.com>
Fri, 10 Aug 2018 08:46:21 +0000 (11:46 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Aug 2018 17:13:02 +0000 (18:13 +0100)
commitf4f55ce38e5f823a13662b12189627a5b9a34688
treef7515811145bbb93c2b5a60f2fb4662c862eee0f
parent4bc5b6b64c9df1a1b9ca6a37359d6476d9e25354
iio:adxl372: Add FIFO and interrupts support

This patch adds support for the adxl372 FIFO. In order to accomplish this,
triggered buffers were used.

The number of FIFO samples which trigger the watermark interrupt can be
configured by using the buffer watermark. The FIFO format is determined by
configuring the scan elements for each axis. The FIFO data is pushed to the
IIO device's buffer.

Signed-off-by: Stefan Popa <stefan.popa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl372.c