]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: qcom: clk-rcg2: split __clk_rcg2_configure function
authorDzmitry Sankouski <dsankouski@gmail.com>
Mon, 18 Nov 2024 10:15:20 +0000 (13:15 +0300)
committerBjorn Andersson <andersson@kernel.org>
Tue, 7 Jan 2025 17:16:00 +0000 (11:16 -0600)
commitfaddad527c82714dede83d932b4d31f7e38c1766
treeab034bcb5ed43942663374033982f017f0ddbc41
parentcef0523dd2ff65cc95cb747a348ce018f22f4d95
clk: qcom: clk-rcg2: split __clk_rcg2_configure function

__clk_rcg2_configure function does 2 things -
configures parent and mnd values. In order to
be able to add new clock options, we should split.

Move __clk_rcg2_configure logic on 2 functions:
- __clk_rcg2_configure_parent which configures clock parent
- __clk_rcg2_configure_mnd which configures mnd values

__clk_rcg2_configure delegates to mentioned functions.

Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
Link: https://lore.kernel.org/r/20241118-starqltechn_integration_upstream-v8-2-ac8e36a3aa65@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/clk-rcg2.c