]> git.karo-electronics.de Git - linux-beck.git/commit
iio: buffer: Coalesce adjacent demux table entries
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 17 Jul 2014 15:59:00 +0000 (16:59 +0100)
committerJonathan Cameron <jic23@kernel.org>
Fri, 1 Aug 2014 17:26:29 +0000 (18:26 +0100)
commitcbe88bcc8ec2f7d6739ea67d7c91517139f0a491
treeb503943c96ad7eed82975b01d91b48fe0120af08
parent61072dbc8a017039059ec0e94548e4ba31602893
iio: buffer: Coalesce adjacent demux table entries

When copying multiple multiple samples that are adjacent in both the source as
well as the destination buffer, instead of creating a new demux table entry for
each sample just increase the length of the previous entry by the size of the
new sample. This makes the demuxing process slightly more efficient.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-buffer.c