]> git.baikalelectronics.ru Git - kernel.git/commit
staging:iio:accel:sca3000 Fix clearing of flag + setting of size of scan.
authorJonathan Cameron <jic23@kernel.org>
Sat, 8 Oct 2016 16:39:04 +0000 (17:39 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 23 Oct 2016 18:33:58 +0000 (19:33 +0100)
commitca3b153d6cdaf1b9c0a9c96dffad06c0eaaa2eba
treee93d2f2132b13649d202b89a152572879b69ff29
parentdf53c120d5a3afa9f5c8be555353846a24f5035c
staging:iio:accel:sca3000 Fix clearing of flag + setting of size of scan.

Not clearing the stuff_to_read flag can lead to a false flag being set
on restarting the buffer if the data was not all read the previous time.

The size of the scan is needed to ensure the function
iio_buffer_read_first_n_outer actually tries to read the data.

This stuff has been broken for some time so not stable material.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
drivers/staging/iio/accel/sca3000.c