From: Octavian Purdila Date: Fri, 5 Jun 2015 12:56:47 +0000 (+0300) Subject: iio: allow userspace to flush the hwfifo with non-blocking reads X-Git-Tag: omap-for-v4.3/fixes-merge-window~44^2~560^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6f67a1f55a7f8a8373068ca07553bd2b2731949;p=pandora-kernel.git 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 Reviewed-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed