clk: qcom: videocc-sc7180: use parent_hws instead of parent_data
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 28 Dec 2021 04:54:10 +0000 (07:54 +0300)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 11 Feb 2022 00:33:31 +0000 (18:33 -0600)
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
drivers/clk/qcom/videocc-sc7180.c

index ed57bbb..5b9b54f 100644 (file)
@@ -99,8 +99,8 @@ static struct clk_branch video_cc_vcodec0_core_clk = {
                .enable_mask = BIT(0),
                .hw.init = &(struct clk_init_data){
                        .name = "video_cc_vcodec0_core_clk",
-                       .parent_data = &(const struct clk_parent_data){
-                               .hw = &video_cc_venus_clk_src.clkr.hw,
+                       .parent_hws = (const struct clk_hw*[]){
+                               &video_cc_venus_clk_src.clkr.hw,
                        },
                        .num_parents = 1,
                        .flags = CLK_SET_RATE_PARENT,
@@ -143,8 +143,8 @@ static struct clk_branch video_cc_venus_ctl_core_clk = {
                .enable_mask = BIT(0),
                .hw.init = &(struct clk_init_data){
                        .name = "video_cc_venus_ctl_core_clk",
-                       .parent_data = &(const struct clk_parent_data){
-                               .hw = &video_cc_venus_clk_src.clkr.hw,
+                       .parent_hws = (const struct clk_hw*[]){
+                               &video_cc_venus_clk_src.clkr.hw,
                        },
                        .num_parents = 1,
                        .flags = CLK_SET_RATE_PARENT,