diff options
author | Frank Wunderlich <frank-w@public-files.de> | 2023-09-22 08:50:19 +0300 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2023-10-16 00:40:09 +0300 |
commit | 6725a29321e48b1dece66fc1ba7b458f0c1d6d77 (patch) | |
tree | a22bf206470fcdc44df0ab219f9108a8c0e2fa81 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | be2cc09bd5b46f13629d4fcdeac7ad1b18bb1a0b (diff) | |
download | linux-6725a29321e48b1dece66fc1ba7b458f0c1d6d77.tar.xz |
thermal/drivers/mediatek/lvts_thermal: Make coeff configurable
The upcoming mt7988 has different temperature coefficients so we
cannot use constants in the functions lvts_golden_temp_init,
lvts_golden_temp_init and lvts_raw_to_temp anymore.
Add a field in the lvts_ctrl pointing to the lvts_data which now
contains the soc-specific temperature coefficents.
To make the code better readable, rename static int coeff_b to
golden_temp_offset, COEFF_A to temp_factor and COEFF_B to temp_offset.
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230922055020.6436-4-linux@fw-web.de
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions