]> 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)
commit8a680d4e5a4eb9fdb1ae18e5a72765fdb5e115d7
treedda1009aac923b9fc6760644980b16ab9d5bf421
parent0ac34e9ff4c280e566a4334098cada3df3fcc4e1
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