From patchwork Wed Dec 15 00:54:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 524653 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A129AC433F5 for ; Wed, 15 Dec 2021 00:55:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238693AbhLOAzD (ORCPT ); Tue, 14 Dec 2021 19:55:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238680AbhLOAzD (ORCPT ); Tue, 14 Dec 2021 19:55:03 -0500 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAFE4C061574 for ; Tue, 14 Dec 2021 16:55:02 -0800 (PST) Received: by mail-lj1-x22d.google.com with SMTP id m12so30891399ljj.6 for ; Tue, 14 Dec 2021 16:55:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0qxzUI1bMJ1leNljdsV9Ai6m1pYm9LuHUA4SWG9Ci20=; b=iFclhMpIm0CCcWzdUZgfH9U5r9f2uaHZ9PjfzA28N7EBQC231wbB/CZX/3+2GvnLvL aDpZQZ+AT2RmblDo4wVlvin0Pyp9a5VKntyarM1OWzEwtVWwrAf2R2WEV/UmmmqTbI83 ZEVQ6bwHhuzBmU4r9WO8xjv0bemLMFo4p6b+4kyDVEsqodMkBhYTnTZEBkkXFKhJXYt3 NPexGyiTaRAXjWAQ2RfJnr4XmppL940F/Rra3cbBr1RJRigA6dMvJk4SsuF/niOKHCYD R7SDkejPGsZXrWs5MM4M6DNGbZK2cW8oLtDG7w/4B9jzBuiIWYgK29t7Oz1P24+xE6Sf 7lSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0qxzUI1bMJ1leNljdsV9Ai6m1pYm9LuHUA4SWG9Ci20=; b=Qdjk0mWCuDwgv269sMGyE4kjrjLCjTk3Np4VmJ+o2sgwljI0x46X5hnDzq/vmGBb8M ONRY3HHCGT2JbX4KAvzjTiD7wU0HR0NkVK68HHymWBU2eSYtJk5/cmetc/3AN44s+SMK JK24JAmRR2CYq2AA82oMnm9g1acNmbLOaApmHBbsVv+UIKBdlOfniRLBnPnhtWkmECHp iW7MWzPlrZN+wUpJfXoInDHZpfs59rX1TlfwKa6JbWhu1L+hTtWeB5W2VTUL/xV87Ekj VpYrxgs5IetQLNJT5ceBXUzR07dJL+hIq2mSjXAuOrSRlsriuc9j8IyelY4MfjzAgfzG oS4g== X-Gm-Message-State: AOAM5307R+Gffnex/O6712FQyeAhtQLNLXIMR+0wA9uh5BH0X96nmOiS tJtJ8xz2NvHntTwE2dzdNyOEBw== X-Google-Smtp-Source: ABdhPJyc3X+DrcbAGBF7RZF110Sn0FFLLg4CEgyCMAN+uKn5KYcggC9w480EmjdQ9c20ZAFNHC9zLA== X-Received: by 2002:a2e:b528:: with SMTP id z8mr8044791ljm.178.1639529701219; Tue, 14 Dec 2021 16:55:01 -0800 (PST) Received: from eriador.lan ([2001:470:dd84:abc0::8a5]) by smtp.gmail.com with ESMTPSA id b12sm53022lfb.146.2021.12.14.16.54.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Dec 2021 16:55:00 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Stephen Boyd , Michael Turquette , Taniya Das Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Marijn Suijten , Stephen Boyd Subject: [PATCH v2 11/15] clk: qcom: videocc-sc7180: use parent_hws instead of parent_data Date: Wed, 15 Dec 2021 03:54:19 +0300 Message-Id: <20211215005423.2114261-12-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211215005423.2114261-1-dmitry.baryshkov@linaro.org> References: <20211215005423.2114261-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org If all parents are specified as clk_hw, we can use parent_hws instead of parent_data. Signed-off-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten Reviewed-by: Stephen Boyd --- drivers/clk/qcom/videocc-sc7180.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/qcom/videocc-sc7180.c b/drivers/clk/qcom/videocc-sc7180.c index ed57bbb19f88..5b9b54f616b8 100644 --- a/drivers/clk/qcom/videocc-sc7180.c +++ b/drivers/clk/qcom/videocc-sc7180.c @@ -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,