]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
thermal/drivers/mediatek/lvts: Add platform ops to support alternative conversion...
authorLaura Nao <laura.nao@collabora.com>
Tue, 25 Nov 2025 16:16:53 +0000 (17:16 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 20 Jan 2026 19:41:49 +0000 (20:41 +0100)
commita4c40559499fdfb37bcb2aa3804c3ea3cc6c2e40
tree57a21bbfc02ba53765638ed0483e533fda91c838
parent6931d597c5ef8eae583df0cb2e4af8fbbf2b9e6e
thermal/drivers/mediatek/lvts: Add platform ops to support alternative conversion logic

Introduce lvts_platform_ops struct to support SoC-specific versions of
lvts_raw_to_temp() and lvts_temp_to_raw() conversion functions.

This is in preparation for supporting SoCs like MT8196/MT6991, which
require a different lvts_temp_to_raw() implementation.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Laura Nao <laura.nao@collabora.com>
Link: https://patch.msgid.link/20251125-mt8196-lvts-v4-v5-3-6db7eb903fb7@collabora.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/mediatek/lvts_thermal.c