commit | bd6880477a3d73270edead88f4b806504998e5d8 | [log] [tgz] |
---|---|---|
author | Lars-Peter Clausen <lars@metafoo.de> | Mon Nov 05 09:56:00 2012 +0000 |
committer | Jonathan Cameron <jic23@kernel.org> | Mon Nov 05 20:39:51 2012 +0000 |
tree | 700423605c971c504d1bfb027d5d53975a271300 | |
parent | 3c7f0c2b1150eae8683a98a5a9143d81edfc2762 [diff] |
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 <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>