]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit57ab0a8966eb5def5d8676acd57587176734abc7
tree972b133aeae530896f9717f9879d947f5cbd2c95
parent1a1b63a70687f3c0a147db46a15ecfac67c96e09
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: e7526a60ae64 ("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