iio: accel: adxl372: Fix/remove limitation for FIFO samples
authorStefan Popa <stefan.popa@analog.com>
Tue, 10 Sep 2019 14:43:32 +0000 (17:43 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 9 Oct 2019 18:11:25 +0000 (19:11 +0100)
commitd202ce4787e446556c6b9d01f84734c3f8174ba3
tree972b133aeae530896f9717f9879d947f5cbd2c95
parent4043ecfb5fc4355a090111e14faf7945ff0fdbd5
iio: accel: adxl372: Fix/remove limitation for FIFO samples

Currently, the driver sets the FIFO_SAMPLES register with the number of
sample sets (maximum of 170 for 3 axis data, 256 for 2-axis and 512 for
single axis). However, the FIFO_SAMPLES register should store the number
of samples, regardless of how the FIFO format is configured.

Signed-off-by: Stefan Popa <stefan.popa@analog.com>
Fixes: f4f55ce38e5f ("iio:adxl372: Add FIFO and interrupts support")
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl372.c