Re: [PATCH v4 1/2] thermal: mediatek: use function pointer for raw_to_mcelsius

From: AngeloGioacchino Del Regno
Date: Wed Jan 18 2023 - 08:25:49 EST


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@xxxxxxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>