Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: qcom: gpucc-sdm660: use parent_hws instead of parent_data

If all parents are specified as clk_hw, we can use parent_hws instead of
parent_data.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211228045415.20543-4-dmitry.baryshkov@linaro.org

authored by

Dmitry Baryshkov and committed by
Bjorn Andersson
ba9b57dc 6985fdc0

+6 -6
+6 -6
drivers/clk/qcom/gpucc-sdm660.c
··· 65 65 .num_vco = ARRAY_SIZE(gpu_vco), 66 66 .clkr.hw.init = &(struct clk_init_data){ 67 67 .name = "gpu_pll0_pll_out_main", 68 - .parent_data = &(const struct clk_parent_data){ 69 - .hw = &gpucc_cxo_clk.clkr.hw, 68 + .parent_hws = (const struct clk_hw*[]){ 69 + &gpucc_cxo_clk.clkr.hw, 70 70 }, 71 71 .num_parents = 1, 72 72 .ops = &clk_alpha_pll_ops, ··· 80 80 .num_vco = ARRAY_SIZE(gpu_vco), 81 81 .clkr.hw.init = &(struct clk_init_data){ 82 82 .name = "gpu_pll1_pll_out_main", 83 - .parent_data = &(const struct clk_parent_data){ 84 - .hw = &gpucc_cxo_clk.clkr.hw, 83 + .parent_hws = (const struct clk_hw*[]){ 84 + &gpucc_cxo_clk.clkr.hw, 85 85 }, 86 86 .num_parents = 1, 87 87 .ops = &clk_alpha_pll_ops, ··· 134 134 .enable_mask = BIT(0), 135 135 .hw.init = &(struct clk_init_data){ 136 136 .name = "gpucc_gfx3d_clk", 137 - .parent_data = &(const struct clk_parent_data){ 138 - .hw = &gfx3d_clk_src.rcg.clkr.hw, 137 + .parent_hws = (const struct clk_hw*[]){ 138 + &gfx3d_clk_src.rcg.clkr.hw, 139 139 }, 140 140 .num_parents = 1, 141 141 .ops = &clk_branch2_ops,