thermal/drivers/airoha: Generalize get_thermal_ADC and set_mux function

In preparation for support of Airoha AN7583, generalize
get_thermal_ADC() and set_thermal_mux() with the use of reg_field API.

This is to take into account the same logic between the current
supported SoC and the new one but with different register address.

While at it also further improve some comments and move sleep inside the
set_thermal_mux function.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
Link: https://patch.msgid.link/20260702094846.17325-6-ansuelsmth@gmail.com
This commit is contained in:
Christian Marangi 2026-07-02 11:48:33 +02:00 • committed by Daniel Lezcano
commit 86741c9128
No known key found for this signature in database
GPG key ID: A832238A2A4FE84F