iio: afe: rescale: expose scale processing function
authorLiam Beguin <liambeguin@gmail.com>
Sun, 13 Feb 2022 02:57:30 +0000 (21:57 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 27 Feb 2022 13:37:49 +0000 (13:37 +0000)
commitbc437f7515f5e14aec9f2801412d9ea48116a97d
tree6dfdfc527dc2a50681355825c48a392e00f85e79
parentb59c04155901fb47b4f7fe7d92447a5b0533c6c8
iio: afe: rescale: expose scale processing function

In preparation for the addition of kunit tests, expose the logic
responsible for combining channel scales.

Signed-off-by: Liam Beguin <liambeguin@gmail.com>
Reviewed-by: Peter Rosin <peda@axentia.se>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220213025739.2561834-2-liambeguin@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/afe/iio-rescale.c
include/linux/iio/afe/rescale.h [new file with mode: 0644]