Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

thermal/drivers/rockchip_thermal: Allow more resets for tsadc node

The tsadc node in rk356x.dtsi has more resets then currently supported
by the rockchip_thermal.c driver, so use
devm_reset_control_array_get() to reset them all.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Link: https://lore.kernel.org/r/20210930110517.14323-3-jbx6244@gmail.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

Johan Jonker and committed by
Daniel Lezcano
02832ed8 5f553ac2

+1 -1
+1 -1
drivers/thermal/rockchip_thermal.c
··· 1383 1383 if (IS_ERR(thermal->regs)) 1384 1384 return PTR_ERR(thermal->regs); 1385 1385 1386 - thermal->reset = devm_reset_control_get(&pdev->dev, "tsadc-apb"); 1386 + thermal->reset = devm_reset_control_array_get(&pdev->dev, false, false); 1387 1387 if (IS_ERR(thermal->reset)) { 1388 1388 error = PTR_ERR(thermal->reset); 1389 1389 dev_err(&pdev->dev, "failed to get tsadc reset: %d\n", error);