commit | 182b49058e036573ccea37619d90fcaddc983536 | [log] [tgz] |
---|---|---|
author | Lars-Peter Clausen <lars@metafoo.de> | Tue Feb 02 16:27:24 2016 +0100 |
committer | Jonathan Cameron <jic23@kernel.org> | Sat Feb 06 18:21:35 2016 +0000 |
tree | dda1009aac923b9fc6760644980b16ab9d5bf421 | |
parent | 713bbb4efb9dcda2e96c8338db1f21c68f2d822a [diff] |
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>