Octavian Purdila c6f67a1f55 iio: allow userspace to flush the hwfifo with non-blocking reads
This patch changes the semantics of non-blocking reads so that a
hardware fifo flush is triggered if the available data in the device
buffer is less then the requested size.

This allows userspace to accurately generate hardware fifo flushes, by
doing a non-blocking read with a size greater then the sum of the
device buffer and hardware fifo size.

Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-06-21 14:51:13 +01:00
..
2015-05-29 10:06:21 -06:00
2015-05-05 08:42:06 -07:00
2015-04-22 09:18:17 -07:00
2015-04-21 09:42:58 -07:00
2015-05-18 10:01:54 -07:00
2015-04-07 12:05:12 +02:00
2015-06-06 22:37:45 -07:00
2015-04-22 09:04:39 -07:00
2015-03-31 12:01:19 -04:00
2015-06-08 10:34:44 -07:00
2015-06-05 23:19:45 +09:00
2015-05-24 13:33:43 -07:00