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

clk: qcom: videocc-sm8150: use parent_hws where possible

Switch to using parent_hws instead of parent_data when parents are
defined in this driver and so accessible using clk_hw.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20210405224743.590029-28-dmitry.baryshkov@linaro.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Dmitry Baryshkov and committed by
Stephen Boyd
c97b6b41 55321d6f

+8 -8
+8 -8
drivers/clk/qcom/videocc-sm8150.c
··· 99 99 .enable_mask = BIT(0), 100 100 .hw.init = &(struct clk_init_data){ 101 101 .name = "video_cc_iris_ahb_clk", 102 - .parent_data = &(const struct clk_parent_data){ 103 - .hw = &video_cc_iris_clk_src.clkr.hw, 102 + .parent_hws = (const struct clk_hw*[]){ 103 + &video_cc_iris_clk_src.clkr.hw, 104 104 }, 105 105 .num_parents = 1, 106 106 .flags = CLK_SET_RATE_PARENT, ··· 117 117 .enable_mask = BIT(0), 118 118 .hw.init = &(struct clk_init_data){ 119 119 .name = "video_cc_mvs0_core_clk", 120 - .parent_data = &(const struct clk_parent_data){ 121 - .hw = &video_cc_iris_clk_src.clkr.hw, 120 + .parent_hws = (const struct clk_hw*[]){ 121 + &video_cc_iris_clk_src.clkr.hw, 122 122 }, 123 123 .num_parents = 1, 124 124 .flags = CLK_SET_RATE_PARENT, ··· 135 135 .enable_mask = BIT(0), 136 136 .hw.init = &(struct clk_init_data){ 137 137 .name = "video_cc_mvs1_core_clk", 138 - .parent_data = &(const struct clk_parent_data){ 139 - .hw = &video_cc_iris_clk_src.clkr.hw, 138 + .parent_hws = (const struct clk_hw*[]){ 139 + &video_cc_iris_clk_src.clkr.hw, 140 140 }, 141 141 .num_parents = 1, 142 142 .flags = CLK_SET_RATE_PARENT, ··· 153 153 .enable_mask = BIT(0), 154 154 .hw.init = &(struct clk_init_data){ 155 155 .name = "video_cc_mvsc_core_clk", 156 - .parent_data = &(const struct clk_parent_data){ 157 - .hw = &video_cc_iris_clk_src.clkr.hw, 156 + .parent_hws = (const struct clk_hw*[]){ 157 + &video_cc_iris_clk_src.clkr.hw, 158 158 }, 159 159 .num_parents = 1, 160 160 .flags = CLK_SET_RATE_PARENT,