diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2021-07-05 00:20:14 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2021-08-17 14:54:25 -0700 |
commit | bd56c1e9603a4c645fcafdef8df9b2b04125d406 (patch) | |
tree | 712cf55092bd4acbd1cdf173b6b305c5757e40ec /drivers/hwmon/stts751.c | |
parent | 02c9dce4df8dd23e67dac1074be732c65c0e67d8 (diff) | |
download | linux-bd56c1e9603a4c645fcafdef8df9b2b04125d406.tar.bz2 |
hwmon: (ntc_thermistor) Use library interpolation
The kernel has a helper function for linear interpolation so
use it. It incidentally makes the code easier to read as well.
Tested on the ST-Ericsson HREFv60plus hardware reference design
with two thermistors forming a thermal zone.
Cc: Peter Rosin <peda@axentia.se>
Cc: Chris Lesiak <chris.lesiak@licor.com>
Cc: linux-iio@vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20210704222014.12058-1-linus.walleij@linaro.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/stts751.c')
0 files changed, 0 insertions, 0 deletions