clk: qcom: gcc-sdm845: use device tree match data
authorRichard Acayan <mailingradian@gmail.com>
Wed, 14 Sep 2022 01:39:21 +0000 (21:39 -0400)
committerBjorn Andersson <andersson@kernel.org>
Wed, 14 Sep 2022 02:20:34 +0000 (21:20 -0500)
commit8e90216d2db99f0b883be3b40d5b581437dc4a5d
treeb0b5c86c6787ea49d9a88616abadc367f19cba02
parent657e9326658c1c570eb1e8fd122a4a7936433673
clk: qcom: gcc-sdm845: use device tree match data

This driver will support more than one SoC's set of clocks, and set of
GDSCs. This behavior would be unclean with hard-coded static variables.
Support it by grabbing clocks, GDSCs, and BCRs in the match data.

Signed-off-by: Richard Acayan <mailingradian@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220914013922.198778-3-mailingradian@gmail.com
drivers/clk/qcom/gcc-sdm845.c