From: Josselin Costanzi Date: Sun, 22 Mar 2015 18:33:38 +0000 (+0200) Subject: iio: add watermark logic to iio read and poll X-Git-Tag: omap-for-v4.1/fixes-rc1~165^2~138^2~38^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37d3455672732b29a477732a94abfe95e199f0ce;p=pandora-kernel.git iio: add watermark logic to iio read and poll Currently the IIO buffer blocking read only wait until at least one data element is available. This patch makes the reader sleep until enough data is collected before returning to userspace. This should limit the read() calls count when trying to get data in batches. Co-author: Yannick Bedhomme Signed-off-by: Josselin Costanzi [rebased and remove buffer timeout] Signed-off-by: Octavian Purdila Reviewed-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed