Messages in this thread | | | Date | Wed, 18 Jan 2023 13:51:32 +0100 | Subject | Re: [PATCH v4 1/2] thermal: mediatek: use function pointer for raw_to_mcelsius | From | AngeloGioacchino Del Regno <> |
| |
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@makrotopia.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
| |