clk: qcom: gcc-sdm660: Replace usage of parent_names
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 25 Aug 2021 20:45:17 +0000 (13:45 -0700)
committerStephen Boyd <sboyd@kernel.org>
Thu, 26 Aug 2021 18:51:11 +0000 (11:51 -0700)
commitda09577ab562e2700f0aba3f17cc741717ca9e38
treeca1632112929fe864051d6a204195dc0f2c397fb
parenta61ca021fe28ab7163ca879fc3532c3cca25063c
clk: qcom: gcc-sdm660: Replace usage of parent_names

Using parent_data and parent_hws, instead of parent_names, does protect
against some cases of incompletely defined clock trees. While it turns
out that the bug being chased this time was totally unrelated, this
patch converts the SDM660 GCC driver to avoid such issues.

The "xo" fixed_factor clock is unused within the gcc driver, but
referenced from the DSI PHY. So it's left in place until the DSI driver
is updated.

Tested-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210825204517.1278130-1-bjorn.andersson@linaro.org
[sboyd@kernel.org: Reduce diff by moving enum and tables back to
original position in previous patch]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/gcc-sdm660.c