Skip to content
Commit cd705ea8 authored by Michael Walle's avatar Michael Walle Committed by Guenter Roeck
Browse files

lib: add generic polynomial calculation



Some temperature and voltage sensors use a polynomial to convert between
raw data points and actual temperature or voltage. The polynomial is
usually the result of a curve fitting of the diode characteristic.

The BT1 PVT hwmon driver already uses such a polynonmial calculation
which is rather generic. Move it to lib/ so other drivers can reuse it.

Signed-off-by: default avatarMichael Walle <michael@walle.cc>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220401214032.3738095-2-michael@walle.cc


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 9054416a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment