summaryrefslogtreecommitdiffstats
path: root/drivers/base/dma-contiguous.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-03-26 18:43:00 +0000
committerJonathan Cameron <jic23@kernel.org>2013-03-29 09:16:47 +0000
commitd8dca33027c1fda3318fe8af85456b801ef88e1e (patch)
tree470c0d2b64075ccb2cf57fd1e8cfd16e69f28ced /drivers/base/dma-contiguous.c
parentd00698df2180ecd78b2892856b310dfedd5f6fe7 (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