mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
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 <npitre@baylibre.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20240402032729.2736685-2-nico@fluxnic.net
This commit is contained in:
parent
61fad0a906
commit
8c25958f71
1 changed files with 1 additions and 1 deletions
|
@ -679,7 +679,7 @@ static int lvts_calibration_init(struct device *dev, struct lvts_ctrl *lvts_ctrl
|
|||
|
||||
for (i = 0; i < lvts_ctrl_data->num_lvts_sensor; i++)
|
||||
memcpy(&lvts_ctrl->calibration[i],
|
||||
efuse_calibration + lvts_ctrl_data->cal_offset[i], 2);
|
||||
efuse_calibration + lvts_ctrl_data->cal_offset[i], 3);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue