thermal/drivers/mediatek/lvts_thermal: Use offsets for every calibration byte
authorNicolas Pitre <npitre@baylibre.com>
Tue, 2 Apr 2024 03:25:38 +0000 (23:25 -0400)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 23 Apr 2024 10:40:29 +0000 (12:40 +0200)
commit5b3367e28a2c47d74bd566b96854ef0de3caa6d7
tree5b07df6e2ad5f866f49fb3bfb0b7ae73bc851640
parent554bca31308ab8234bac505d0b86d9082b549a40
thermal/drivers/mediatek/lvts_thermal: Use offsets for every calibration byte

Current code assumes calibration values are always stored contiguously
in host endian order. A future patch will prove this wrong.

Let's specify the offset for each calibration byte instead.

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-5-nico@fluxnic.net
drivers/thermal/mediatek/lvts_thermal.c