diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-03-26 18:43:00 +0000 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-03-29 09:16:47 +0000 |
commit | d8dca33027c1fda3318fe8af85456b801ef88e1e (patch) | |
tree | 470c0d2b64075ccb2cf57fd1e8cfd16e69f28ced /drivers/base/dma-contiguous.c | |
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>
Diffstat (limited to 'drivers/base/dma-contiguous.c')
0 files changed, 0 insertions, 0 deletions