Skip to content

Commit 7954c92

Browse files
Hsin-Te Yuandlezcano
authored andcommitted
thermal/drivers/mediatek/lvts_thermal: Add coeff for mt8192
In order for lvts_raw_to_temp to function properly on mt8192, temperature coefficients for mt8192 need to be added. Fixes: 2887322 ("thermal/drivers/mediatek/lvts_thermal: Add mt8192 support") Signed-off-by: Hsin-Te Yuan <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 63d23fb commit 7954c92

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/thermal/mediatek/lvts_thermal.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,11 +1530,15 @@ static const struct lvts_data mt7988_lvts_ap_data = {
15301530
static const struct lvts_data mt8192_lvts_mcu_data = {
15311531
.lvts_ctrl = mt8192_lvts_mcu_data_ctrl,
15321532
.num_lvts_ctrl = ARRAY_SIZE(mt8192_lvts_mcu_data_ctrl),
1533+
.temp_factor = LVTS_COEFF_A_MT8195,
1534+
.temp_offset = LVTS_COEFF_B_MT8195,
15331535
};
15341536

15351537
static const struct lvts_data mt8192_lvts_ap_data = {
15361538
.lvts_ctrl = mt8192_lvts_ap_data_ctrl,
15371539
.num_lvts_ctrl = ARRAY_SIZE(mt8192_lvts_ap_data_ctrl),
1540+
.temp_factor = LVTS_COEFF_A_MT8195,
1541+
.temp_offset = LVTS_COEFF_B_MT8195,
15381542
};
15391543

15401544
static const struct lvts_data mt8195_lvts_mcu_data = {

0 commit comments

Comments
 (0)