summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2016-10-19 19:07:01 +0200
committerJonathan Cameron <jic23@kernel.org>2016-10-23 19:34:14 +0100
commitf915f7aafba79784b8d89cf186fd63d3b16b91b9 (patch)
tree461cbc66908a95f7626ac11d85cfca962ebcdbf9 /block
parente79e8027c1bb9e5525ad186efef1d89309c378f2 (diff)
downloadlinux-stable-f915f7aafba79784b8d89cf186fd63d3b16b91b9.tar.gz
linux-stable-f915f7aafba79784b8d89cf186fd63d3b16b91b9.tar.bz2
linux-stable-f915f7aafba79784b8d89cf186fd63d3b16b91b9.zip
staging:iio:ad7606: Avoid allocating buffer for each data capture
Currently the ad7606 driver dynamically allocates and frees a transfer buffer each time a sample capture is performed in buffered mode, which introduces unnecessary overhead. The driver state struct already contains a buffer that is used for transfers in one-shot mode. This buffer is large enough to hold all samples, but not the timestamp that might be present in buffered mode. Extend the buffer size to be able to contain the timestamp and update the buffered capture function to use this buffer. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions