Skip to content

Commit 8c25958

Browse files
Nicolas Pitredlezcano
authored andcommitted
thermal/drivers/mediatek/lvts_thermal: Retrieve all calibration bytes
Calibration values are 24-bit wide. Those values so far appear to span only 16 bits but let's not push our luck. Found while looking at the original Mediatek driver code. Signed-off-by: Nicolas Pitre <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 61fad0a commit 8c25958

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/mediatek/lvts_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ static int lvts_calibration_init(struct device *dev, struct lvts_ctrl *lvts_ctrl
679679

680680
for (i = 0; i < lvts_ctrl_data->num_lvts_sensor; i++)
681681
memcpy(&lvts_ctrl->calibration[i],
682-
efuse_calibration + lvts_ctrl_data->cal_offset[i], 2);
682+
efuse_calibration + lvts_ctrl_data->cal_offset[i], 3);
683683

684684
return 0;
685685
}

0 commit comments

Comments
 (0)