]> git.ipfire.org Git - thirdparty/linux.git/commit
soc: qcom: pd-mapper: Simplify code using of_root to get root device tree node
authorVladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Tue, 24 Feb 2026 11:02:13 +0000 (13:02 +0200)
committerBjorn Andersson <andersson@kernel.org>
Mon, 16 Mar 2026 01:26:41 +0000 (20:26 -0500)
commitcdf0e445ee21119187f5551e68ff4e466f8aa950
tree5479abc7eb73c7b30004b544fcfdf13a7f06dc33
parent11080cc4af8f0ee4b88d0e51384765bb78f05bf5
soc: qcom: pd-mapper: Simplify code using of_root to get root device tree node

A few lines of code are removed by using the global non-NULL of_root
pointer to access the root device tree node instead of its recalculation.

Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260224110213.3929063-1-vladimir.zapolskiy@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/qcom_pd_mapper.c