clk: qcom: smd-rpm: Keep one rpm handle for all clocks
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Mon, 1 May 2023 13:04:00 +0000 (15:04 +0200)
committerBjorn Andersson <andersson@kernel.org>
Thu, 25 May 2023 02:34:28 +0000 (19:34 -0700)
commitcaa2347d0224116d5083afa670c46094e0ceeff3
tree7e2efe54f2b49313ed94ac2f99c5af1daf9b4761
parent3e4d179532423f299554cd0dedabdd9d2fdd238d
clk: qcom: smd-rpm: Keep one rpm handle for all clocks

For no apparent reason (as there's just one RPM per SoC), all clocks
currently store a copy of a pointer to smd_rpm. Introduce a single,
global one to save up on space in each clk definition.

bloat-o-meter reports:

Total: Before=41887, After=40843, chg -2.49%

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230501130400.107771-1-konrad.dybcio@linaro.org
drivers/clk/qcom/clk-smd-rpm.c