diff options
author | Daniel Golle <[email protected]> | 2023-01-18 15:40:39 +0000 |
---|---|---|
committer | Daniel Lezcano <[email protected]> | 2023-01-24 11:43:22 +0100 |
commit | 4f2ee0aa2e70622e01c06686a967a4dab6fb7f05 (patch) | |
tree | d2f2a4d90cfea2c2cc8bdb854c9df61841149f45 /drivers/usb/cdns3/cdns3-debug.h | |
parent | d69e7041a39c24de8c935b82c1edae6490be5b4d (diff) |
thermal/drivers/mtk: Use function pointer for raw_to_mcelsius
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.
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Signed-off-by: Daniel Golle <[email protected]>
Reviewed-by: Matthias Brugger <[email protected]>
Link: https://lore.kernel.org/r/69c17529e8418da3eec703dde31e1b01e5b0f7e8.1674055882.git.daniel@makrotopia.org
Signed-off-by: Daniel Lezcano <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions