]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
thermal: rcar_gen3: Reuse logic to read fuses on Gen3 and Gen4
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 5 Mar 2025 17:46:31 +0000 (18:46 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 25 Mar 2025 19:52:04 +0000 (20:52 +0100)
commitbccdbba51a946fdfa08e972f14526a081c6f8bf7
treef5a93ddca9cf277eefef6842b64460bfba6abcc2
parentb744af1180dbadcfd994a48d613b4431373da70d
thermal: rcar_gen3: Reuse logic to read fuses on Gen3 and Gen4

The hardware calibration is fused on some, but not all, Gen3 and Gen4
boards. The calibrations values are the same on both generations but
located at different register offsets.

Instead of having duplicated logic to read the and store the values
create structure to hold the register parameters and have a common
function do the reading.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20250305174631.4119374-3-niklas.soderlund+renesas@ragnatech.se
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/renesas/rcar_gen3_thermal.c