mediatek: consider adc_oe thermal calibration value in efuse
authorDaniel Golle <daniel@makrotopia.org>
Mon, 31 Oct 2022 19:50:40 +0000 (19:50 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 31 Oct 2022 22:37:05 +0000 (22:37 +0000)
commite131a66e307cb108443714e9d57c1eeca12194a1
tree0925699ec6311d70fbe9e7af8636f4c8a10da6d1
parent08e153c3c31a117de0d47586ea7ab720ef95104b
mediatek: consider adc_oe thermal calibration value in efuse

The use of the adc_oe value stored in the efuse has been dropped in
MediaTek's SDK during a recent refactorization of the temperature
calculation formula. Don't ignore this offset value and again include
it in raw-to-deg-celsius calculation.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/patches-5.15/805-thermal-drivers-mediatek-add-support-for-MT7986-and-.patch