Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48f5bbfb authored by Eduardo Valentin's avatar Eduardo Valentin Committed by Kevin Hilman
Browse files

thermal: support slope and offset coefficients



It is common to have a linear extrapolation from
the current sensor readings and the actual temperature
value. This is specially the case when the sensor
is in use to extrapolate hotspots.

This patch adds slope and offset constants for
single sensor linear extrapolation equation. Because
the same sensor can be use in different locations,
from board to board, these constants are added
as part of thermal_zone_params.

The constants are available through sysfs.

It is up to the device driver to determine
the usage of these values.

Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
(cherry picked from commit 9d0be7f4810257a9b0fc78fff641f14409f14ab3)
Signed-off-by: default avatarKevin Hilman <khilman@linaro.org>
parent babef976
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment