From: Lars-Peter Clausen Date: Mon, 5 Nov 2012 09:56:00 +0000 (+0000) Subject: staging:iio:ad7887: Preallocate sample buffer X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~571^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd6880477a3d73270edead88f4b806504998e5d8;p=pandora-kernel.git staging:iio:ad7887: Preallocate sample buffer We know that the sample buffer will at most need to hold two 16 bit samples and the 64 bit aligned 64 bit timestamp. Preallocate a buffer large enough to hold this instead of allocating and freeing it each time a sample is read. Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed