diff mbox series

[v2,1/3] clk: qcom: dispcc-sm6115: use parent_hws for disp_cc_mdss_rot_clk

Message ID 20221210190712.451247-1-dmitry.baryshkov@linaro.org (mailing list archive)
State Accepted
Commit 4c261dfd5e39ab7512f8df8fc459663bab55488c
Headers show
Series [v2,1/3] clk: qcom: dispcc-sm6115: use parent_hws for disp_cc_mdss_rot_clk | expand

Commit Message

Dmitry Baryshkov Dec. 10, 2022, 7:07 p.m. UTC
Rework disp_cc_mdss_rot_clk to use parent_hws instead of parent_names.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
---
 drivers/clk/qcom/dispcc-sm6115.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Konrad Dybcio Dec. 10, 2022, 7:30 p.m. UTC | #1
On 10.12.2022 20:07, Dmitry Baryshkov wrote:
> Rework disp_cc_mdss_rot_clk to use parent_hws instead of parent_names.
> 
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> Reviewed-by: Stephen Boyd <sboyd@kernel.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad
>  drivers/clk/qcom/dispcc-sm6115.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/clk/qcom/dispcc-sm6115.c b/drivers/clk/qcom/dispcc-sm6115.c
> index 818bb8f4637c..1937edf23f21 100644
> --- a/drivers/clk/qcom/dispcc-sm6115.c
> +++ b/drivers/clk/qcom/dispcc-sm6115.c
> @@ -466,8 +466,8 @@ static struct clk_branch disp_cc_mdss_rot_clk = {
>  		.enable_mask = BIT(0),
>  		.hw.init = &(struct clk_init_data){
>  			.name = "disp_cc_mdss_rot_clk",
> -			.parent_names = (const char *[]){
> -				"disp_cc_mdss_rot_clk_src",
> +			.parent_hws = (const struct clk_hw*[]) {
> +				&disp_cc_mdss_rot_clk_src.clkr.hw,
>  			},
>  			.num_parents = 1,
>  			.flags = CLK_SET_RATE_PARENT,
Bjorn Andersson Jan. 11, 2023, 5:09 a.m. UTC | #2
On Sat, 10 Dec 2022 22:07:10 +0300, Dmitry Baryshkov wrote:
> Rework disp_cc_mdss_rot_clk to use parent_hws instead of parent_names.
> 
> 

Applied, thanks!

[1/3] clk: qcom: dispcc-sm6115: use parent_hws for disp_cc_mdss_rot_clk
      commit: 4c261dfd5e39ab7512f8df8fc459663bab55488c
[2/3] clk: qcom: gcc-sm6375: use parent_hws for gcc_disp_gpll0_div_clk_src
      commit: 7069b91ac2cd682a681ed2f0125bccd76b777d86
[3/3] clk: qcom: gcc-sm6375: use parent_hws where possible
      (no commit info)

Best regards,
diff mbox series

Patch

diff --git a/drivers/clk/qcom/dispcc-sm6115.c b/drivers/clk/qcom/dispcc-sm6115.c
index 818bb8f4637c..1937edf23f21 100644
--- a/drivers/clk/qcom/dispcc-sm6115.c
+++ b/drivers/clk/qcom/dispcc-sm6115.c
@@ -466,8 +466,8 @@  static struct clk_branch disp_cc_mdss_rot_clk = {
 		.enable_mask = BIT(0),
 		.hw.init = &(struct clk_init_data){
 			.name = "disp_cc_mdss_rot_clk",
-			.parent_names = (const char *[]){
-				"disp_cc_mdss_rot_clk_src",
+			.parent_hws = (const struct clk_hw*[]) {
+				&disp_cc_mdss_rot_clk_src.clkr.hw,
 			},
 			.num_parents = 1,
 			.flags = CLK_SET_RATE_PARENT,