clk: qcom: rpmh: rename VRM clock data
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 2 Dec 2022 18:58:42 +0000 (20:58 +0200)
committerBjorn Andersson <andersson@kernel.org>
Fri, 2 Dec 2022 19:59:49 +0000 (13:59 -0600)
commit6ad844d739ee57779d3814fe3c9f97dff68719b2
tree6b14fac09587739f4b67253e41a0415e448929f5
parent166eb3eb3bb394255a9a8aa4cadbba5567ba184a
clk: qcom: rpmh: rename VRM clock data

RPMH VRM clocks are frequently shared between several platforms. It
makes little sense to encode the SoC name into the clock name, if the
same clock is used for other SoCs.

Rework the VRM clock definitions to add resource-specific suffix. Keep
the userspace-visible clock name, but encode the part of cmd resource
and the divider into the variable name. This also make it obvious which
variant is used, making the code less error-prone.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221202185843.721673-8-dmitry.baryshkov@linaro.org
drivers/clk/qcom/clk-rpmh.c