Skip to content

Commit 9a9f71b

Browse files
Nicolas Frattarolidlezcano
authored andcommitted
thermal/drivers/rockchip: Rename rk_tsadcv3_tshut_mode
The "v" version specifier here refers to the hardware IP revision. Mainline deviated from downstream here by calling the v4 revision v3 as it didn't support the v3 hardware revision at all. This creates needless confusion, so rename it to rk_tsadcv4_tshut_mode to be consistent with what the hardware wants to be called. Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com> Reviewed-by: Heiko Stuebner <heiko@sntech.de> Link: https://lore.kernel.org/r/20250610-rk3576-tsadc-upstream-v6-1-b6e9efbf1015@collabora.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent 7ee2c3c commit 9a9f71b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/thermal/rockchip_thermal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ static void rk_tsadcv2_tshut_mode(int chn, void __iomem *regs,
10451045
writel_relaxed(val, regs + TSADCV2_INT_EN);
10461046
}
10471047

1048-
static void rk_tsadcv3_tshut_mode(int chn, void __iomem *regs,
1048+
static void rk_tsadcv4_tshut_mode(int chn, void __iomem *regs,
10491049
enum tshut_mode mode)
10501050
{
10511051
u32 val_gpio, val_cru;
@@ -1297,7 +1297,7 @@ static const struct rockchip_tsadc_chip rk3588_tsadc_data = {
12971297
.get_temp = rk_tsadcv4_get_temp,
12981298
.set_alarm_temp = rk_tsadcv3_alarm_temp,
12991299
.set_tshut_temp = rk_tsadcv3_tshut_temp,
1300-
.set_tshut_mode = rk_tsadcv3_tshut_mode,
1300+
.set_tshut_mode = rk_tsadcv4_tshut_mode,
13011301
.table = {
13021302
.id = rk3588_code_table,
13031303
.length = ARRAY_SIZE(rk3588_code_table),

0 commit comments

Comments
 (0)