clk: qcom: clk-alpha-pll: modularize alpha_pll_trion_set_rate()
authorVinod Koul <vkoul@kernel.org>
Wed, 27 Jan 2021 07:08:08 +0000 (12:38 +0530)
committerStephen Boyd <sboyd@kernel.org>
Mon, 8 Feb 2021 18:03:57 +0000 (10:03 -0800)
commit80ca7765fc75b3fcfa99bc9c1716bbb793c0b179
tree836e656c5b6cf4d6fc947027c4728f7e9915fe9a
parent160210b4833156f5dc6515e65f6eb4fec527fb62
clk: qcom: clk-alpha-pll: modularize alpha_pll_trion_set_rate()

Trion 5LPE set rate uses code similar to alpha_pll_trion_set_rate() but
with different registers. Modularize these by moving out latch and latch
ack bits so that we can reuse the function.

Suggested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20210127070811.152690-3-vkoul@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/clk-alpha-pll.c