[PATCH v4 1/2] thermal: mediatek: use function pointer for raw_to_mcelsius
AngeloGioacchino Del Regno
angelogioacchino.delregno at collabora.com
Wed Jan 18 04:51:32 PST 2023
Il 18/01/23 04:55, Daniel Golle ha scritto:
> Instead of having if-else logic selecting either raw_to_mcelsius_v1 or
> raw_to_mcelsius_v2 in mtk_thermal_bank_temperature introduce a function
> pointer raw_to_mcelsius to struct mtk_thermal which is initialized in the
> probe function.
>
> Signed-off-by: Daniel Golle <daniel at makrotopia.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
More information about the linux-arm-kernel
mailing list