aboutsummaryrefslogtreecommitdiff
path: root/drivers/cdx/controller/cdx_controller.c
diff options
context:
space:
mode:
authorFrank Wunderlich <frank-w@public-files.de>2023-09-22 07:50:19 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2023-10-15 23:40:09 +0200
commit6725a29321e48b1dece66fc1ba7b458f0c1d6d77 (patch)
treea22bf206470fcdc44df0ab219f9108a8c0e2fa81 /drivers/cdx/controller/cdx_controller.c
parentbe2cc09bd5b46f13629d4fcdeac7ad1b18bb1a0b (diff)
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 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions