提交 d5299c1b 编写于 作者: D Daniel Lezcano 提交者: Daniel Lezcano

thermal/drivers/rcar_gen3: Use the generic function to get the number of trips

The thermal core framework allows to get the number of thermal trips,
use it instead of visiting the thermal core structure internals.
Signed-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: NNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://lore.kernel.org/r/20221003092602.1323944-16-daniel.lezcano@linaro.org
上级 eb2bb3be
...@@ -529,7 +529,7 @@ static int rcar_gen3_thermal_probe(struct platform_device *pdev) ...@@ -529,7 +529,7 @@ static int rcar_gen3_thermal_probe(struct platform_device *pdev)
if (ret) if (ret)
goto error_unregister; goto error_unregister;
ret = of_thermal_get_ntrips(tsc->zone); ret = thermal_zone_get_num_trips(tsc->zone);
if (ret < 0) if (ret < 0)
goto error_unregister; goto error_unregister;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册