From: Lars-Peter Clausen Date: Tue, 26 Mar 2013 18:43:00 +0000 (+0000) Subject: staging:iio:ad799x: Preallocate sample buffer X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~378^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8dca33027c1fda3318fe8af85456b801ef88e1e;p=pandora-kernel.git staging:iio:ad799x: Preallocate sample buffer Avoid allocating and freeing the sample buffer for each transfer. Instead allocate it once when we start sampling. Also pre-compute the number of bytes we need to transfer in the same way. Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed