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

clk: qcom: videocc-sc7180: 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-12-dmitry.baryshkov@linaro.org

authored by

Dmitry Baryshkov and committed by
Bjorn Andersson
38d40dd3 0cc3bd80

+4 -4
+4 -4
drivers/clk/qcom/videocc-sc7180.c
··· 99 99 .enable_mask = BIT(0), 100 100 .hw.init = &(struct clk_init_data){ 101 101 .name = "video_cc_vcodec0_core_clk", 102 - .parent_data = &(const struct clk_parent_data){ 103 - .hw = &video_cc_venus_clk_src.clkr.hw, 102 + .parent_hws = (const struct clk_hw*[]){ 103 + &video_cc_venus_clk_src.clkr.hw, 104 104 }, 105 105 .num_parents = 1, 106 106 .flags = CLK_SET_RATE_PARENT, ··· 143 143 .enable_mask = BIT(0), 144 144 .hw.init = &(struct clk_init_data){ 145 145 .name = "video_cc_venus_ctl_core_clk", 146 - .parent_data = &(const struct clk_parent_data){ 147 - .hw = &video_cc_venus_clk_src.clkr.hw, 146 + .parent_hws = (const struct clk_hw*[]){ 147 + &video_cc_venus_clk_src.clkr.hw, 148 148 }, 149 149 .num_parents = 1, 150 150 .flags = CLK_SET_RATE_PARENT,