]> git.baikalelectronics.ru Git - kernel.git/commit
iio: Add helper function for calculating scan index storage size
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 2 Feb 2016 15:27:24 +0000 (16:27 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 6 Feb 2016 18:21:35 +0000 (18:21 +0000)
commit1fdbfbd92cae7a4e56cedad963b50c94b5bdacc7
treedda1009aac923b9fc6760644980b16ab9d5bf421
parent4d98a5ff8b1dc64890a82e0bdcd88faf841d1d59
iio: Add helper function for calculating scan index storage size

We have the same code for computing the scan index storage size in bytes
all over the place. Factor this out into helper functions.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-buffer.c