mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
clk: qcom: gcc-msm8976: switch to parent_hws
Change several entries of parent_data to use parent_hws instead, which results in slightly more ovbious code. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230103145515.1164020-8-dmitry.baryshkov@linaro.org
This commit is contained in:
parent
3f1c24b967
commit
fec6a7b545
@ -334,9 +334,9 @@ static const struct parent_map gcc_parent_map_7[] = {
|
|||||||
{ P_GPLL6_OUT, 3 },
|
{ P_GPLL6_OUT, 3 },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct clk_parent_data gcc_parent_data_7[] = {
|
static const struct clk_hw * gcc_parent_hws_7[] = {
|
||||||
{ .hw = &gpll0_vote.hw },
|
&gpll0_vote.hw,
|
||||||
{ .hw = &gpll6_vote.hw },
|
&gpll6_vote.hw,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct parent_map gcc_parent_map_8[] = {
|
static const struct parent_map gcc_parent_map_8[] = {
|
||||||
@ -363,8 +363,8 @@ static const struct parent_map gcc_parent_map_8_gp[] = {
|
|||||||
{ P_GPLL0_OUT_MAIN, 1 },
|
{ P_GPLL0_OUT_MAIN, 1 },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct clk_parent_data gcc_parent_data_8_gp[] = {
|
static const struct clk_hw *gcc_parent_hws_8_gp[] = {
|
||||||
{ .hw = &gpll0_vote.hw },
|
&gpll0_vote.hw,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct parent_map gcc_parent_map_9[] = {
|
static const struct parent_map gcc_parent_map_9[] = {
|
||||||
@ -952,8 +952,8 @@ static struct clk_rcg2 camss_gp0_clk_src = {
|
|||||||
.freq_tbl = ftbl_camss_gp0_clk_src,
|
.freq_tbl = ftbl_camss_gp0_clk_src,
|
||||||
.clkr.hw.init = &(struct clk_init_data){
|
.clkr.hw.init = &(struct clk_init_data){
|
||||||
.name = "camss_gp0_clk_src",
|
.name = "camss_gp0_clk_src",
|
||||||
.parent_data = gcc_parent_data_8_gp,
|
.parent_hws = gcc_parent_hws_8_gp,
|
||||||
.num_parents = ARRAY_SIZE(gcc_parent_data_8_gp),
|
.num_parents = ARRAY_SIZE(gcc_parent_hws_8_gp),
|
||||||
.ops = &clk_rcg2_ops,
|
.ops = &clk_rcg2_ops,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@ -973,8 +973,8 @@ static struct clk_rcg2 camss_gp1_clk_src = {
|
|||||||
.freq_tbl = ftbl_camss_gp1_clk_src,
|
.freq_tbl = ftbl_camss_gp1_clk_src,
|
||||||
.clkr.hw.init = &(struct clk_init_data){
|
.clkr.hw.init = &(struct clk_init_data){
|
||||||
.name = "camss_gp1_clk_src",
|
.name = "camss_gp1_clk_src",
|
||||||
.parent_data = gcc_parent_data_8_gp,
|
.parent_hws = gcc_parent_hws_8_gp,
|
||||||
.num_parents = ARRAY_SIZE(gcc_parent_data_8_gp),
|
.num_parents = ARRAY_SIZE(gcc_parent_hws_8_gp),
|
||||||
.ops = &clk_rcg2_ops,
|
.ops = &clk_rcg2_ops,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@ -1015,8 +1015,8 @@ static struct clk_rcg2 mclk0_clk_src = {
|
|||||||
.freq_tbl = ftbl_mclk_clk_src,
|
.freq_tbl = ftbl_mclk_clk_src,
|
||||||
.clkr.hw.init = &(struct clk_init_data){
|
.clkr.hw.init = &(struct clk_init_data){
|
||||||
.name = "mclk0_clk_src",
|
.name = "mclk0_clk_src",
|
||||||
.parent_data = gcc_parent_data_7,
|
.parent_hws = gcc_parent_hws_7,
|
||||||
.num_parents = ARRAY_SIZE(gcc_parent_data_7),
|
.num_parents = ARRAY_SIZE(gcc_parent_hws_7),
|
||||||
.ops = &clk_rcg2_ops,
|
.ops = &clk_rcg2_ops,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@ -1029,8 +1029,8 @@ static struct clk_rcg2 mclk1_clk_src = {
|
|||||||
.freq_tbl = ftbl_mclk_clk_src,
|
.freq_tbl = ftbl_mclk_clk_src,
|
||||||
.clkr.hw.init = &(struct clk_init_data){
|
.clkr.hw.init = &(struct clk_init_data){
|
||||||
.name = "mclk1_clk_src",
|
.name = "mclk1_clk_src",
|
||||||
.parent_data = gcc_parent_data_7,
|
.parent_hws = gcc_parent_hws_7,
|
||||||
.num_parents = ARRAY_SIZE(gcc_parent_data_7),
|
.num_parents = ARRAY_SIZE(gcc_parent_hws_7),
|
||||||
.ops = &clk_rcg2_ops,
|
.ops = &clk_rcg2_ops,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@ -1043,8 +1043,8 @@ static struct clk_rcg2 mclk2_clk_src = {
|
|||||||
.freq_tbl = ftbl_mclk_clk_src,
|
.freq_tbl = ftbl_mclk_clk_src,
|
||||||
.clkr.hw.init = &(struct clk_init_data){
|
.clkr.hw.init = &(struct clk_init_data){
|
||||||
.name = "mclk2_clk_src",
|
.name = "mclk2_clk_src",
|
||||||
.parent_data = gcc_parent_data_7,
|
.parent_hws = gcc_parent_hws_7,
|
||||||
.num_parents = ARRAY_SIZE(gcc_parent_data_7),
|
.num_parents = ARRAY_SIZE(gcc_parent_hws_7),
|
||||||
.ops = &clk_rcg2_ops,
|
.ops = &clk_rcg2_ops,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user