Skip to content
Commit 9f77cc5a authored by Stefan Popa's avatar Stefan Popa Committed by Paul Gortmaker
Browse files

iio: accel: adxl372: Fix push to buffers lost samples

commit 62df81b7

 upstream.

One in two sample sets was lost by multiplying fifo_set_size with
sizeof(u16). Also, the double number of available samples were pushed to
the iio buffers.

Signed-off-by: default avatarStefan Popa <stefan.popa@analog.com>
Fixes: f4f55ce3

 ("iio:adxl372: Add FIFO and interrupts support")
Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent d3db274a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment