iio: afe: rescale: add offset support
authorLiam Beguin <liambeguin@gmail.com>
Sun, 13 Feb 2022 02:57:32 +0000 (21:57 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 27 Feb 2022 13:38:10 +0000 (13:38 +0000)
commita29c3283653b80b916c5ca5292c5d36415e38e92
tree6ab85e42b9c5fab4b2126c6eb7e14c5b52cdfbfd
parent701ee14da95dcd25c1bf20dea7c8335b70d73124
iio: afe: rescale: add offset support

This is a preparatory change required for the addition of temperature
sensing front ends.

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-4-liambeguin@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/afe/iio-rescale.c
include/linux/iio/afe/rescale.h