commit | d8dca33027c1fda3318fe8af85456b801ef88e1e | [log] [tgz] |
---|---|---|
author | Lars-Peter Clausen <lars@metafoo.de> | Tue Mar 26 18:43:00 2013 +0000 |
committer | Jonathan Cameron <jic23@kernel.org> | Fri Mar 29 09:16:47 2013 +0000 |
tree | 470c0d2b64075ccb2cf57fd1e8cfd16e69f28ced | |
parent | d00698df2180ecd78b2892856b310dfedd5f6fe7 [diff] |
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 <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>