From patchwork Mon Apr 5 22:47:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 415335 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4049588jai; Mon, 5 Apr 2021 15:48:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+P3X33Wc3krTMqIujjsKGhCCt3X+BjYVKH4zV/kWgqAv11mimGEul8VwptA8JyU8qleGk X-Received: by 2002:a17:907:3e8c:: with SMTP id hs12mr31015726ejc.105.1617662914998; Mon, 05 Apr 2021 15:48:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617662914; cv=none; d=google.com; s=arc-20160816; b=Nwj8iFwzD9Z8oGx4JuMFOJA8CNwzW0DpDdTd2BRpokc3PUwhpyzScO0/Hp17gGGyNl M5eN1BdSD+kLzHq/CjWWlyvshS0s39IgLBaaQmnhd5WCmd+LM20ZbQFUHLDSyv1hXzOk U7Xy1gXV41mjWK7ob1OPbvKBG8awDwUXbEeQvwJW7/bf799a7g5ni2LLTy6ybk953K1p nBEY2RDfrSpSYcfkST7YGVveBkV9ASP8nCKPG+WBkCSxTlG6xYYcQkOot7Mf97iCzXrQ Z1QJhpQQPhuU8kUy0revs48fYtyO5pXDo7Z6edP9uDgI5++QXRH2OJ1rRrUMGe61bG4e C71Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=N9jP1HbxvOEYKDETWz122ME/zZrHyGt+qqgjkSKdZWA=; b=hrnYxk1LaN+srpWekKG5v3LhGOpHhGAZcqyA4uL7LLtTGkcgpjoLb1VCExlv5B4cV9 7Mckc7OHKub0q4UhGwcNNejrqZ/59q+lNBPi08nwEbxYnto8mdFJAZNahAn9Ik6X7DP/ RBre4DHw49NIdOQixVW8ZpnvNlXQAFAoSW6+qzbLBDgWq2vvHkOzA9jlGnfgZtaciVwK 1zzgLxVwivwH2lijEkGReH0KmhQDw0J1C8wecuGP1imjXu+MV4sGwi0HVqtVbGSZ4iwQ CzFEGJ2xT0LJpszzJKjzFrF9mrLkAD0jY+A5IdMNoGT3ZCkMh8rJePsO223GipGKMpup +c0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dRwSPioV; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si15112224edt.42.2021.04.05.15.48.34; Mon, 05 Apr 2021 15:48:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dRwSPioV; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242899AbhDEWsQ (ORCPT + 17 others); Mon, 5 Apr 2021 18:48:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242890AbhDEWsN (ORCPT ); Mon, 5 Apr 2021 18:48:13 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7D1DC061793 for ; Mon, 5 Apr 2021 15:48:05 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id n8so895839lfh.1 for ; Mon, 05 Apr 2021 15:48:05 -0700 (PDT) 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=N9jP1HbxvOEYKDETWz122ME/zZrHyGt+qqgjkSKdZWA=; b=dRwSPioVqwQZNY8bx9yuwAY6QPsrbKIjwYOitx6V3U6bx4ug40OkHPHOLoFUm0wzKu 9WvypAH9OeAaQjjKHsM7IgiPUP4mz4nHkUMVZnebG+ul9B8TeUz+cQq/ykHA1RBPaHJA bqoRaDNMdlhgvgI2Ze7q64pZF8ZED2FywfLmKpm0Pmnw/mDjalCTmNf+7si4gO4a8qzA uo76WeLAZN2h3jTOqPjdKnYWhnOBlWJC7FzfZu8SE0K38e4JXrqi0IHEb5Q/JIrfxw3F /5sTWYqqMqy+qk8+ibSYQq0PcYjoQ8lGCJ89yjd0565fU30NHx6V0xkxuRGoU1YpjTqF P8qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=N9jP1HbxvOEYKDETWz122ME/zZrHyGt+qqgjkSKdZWA=; b=UXklDswxQckQI4fBesd/p4+v8azWguAPlovdRrTl12CWk61kh+wF2qcUQ61C4DUtkF 5gaLD5N5rSQsbmJ15Mxiq8r4kO7KOjTDLE54byaijA7dyA2tw529sFKYBXpigSst1Ui4 7R8VmItQ+y6tmehJkU2gyr+pnvPymvTK/dVCr0y0wtQqvkVMgqDEGN6pDivk0hJiAPLe Z3shleY4V9jnYy66dkf1R559vD0ftLRpkDKQwuQR3vhVprmWlKhb7b5FLQF4XepYsdEj 45Q6veh5zNcQvl1hedaPwnK2L40y/cMrYIKWYQ3AD3HK5KDYAcggYC+k5383I39RtsER PUqQ== X-Gm-Message-State: AOAM532AlT0llErTe5veGc+w7P0ShhzGOAEVbKqEWDqwkewOg6H10bJ3 vu8apH0cJWAlsJg87ku45Bv5PA== X-Received: by 2002:a05:6512:ce:: with SMTP id c14mr19155360lfp.64.1617662884400; Mon, 05 Apr 2021 15:48:04 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id 130sm213748lfg.263.2021.04.05.15.48.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Apr 2021 15:48:04 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Stephen Boyd , Michael Turquette Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH v4 27/33] clk: qcom: videocc-sm8150: use parent_hws where possible Date: Tue, 6 Apr 2021 01:47:37 +0300 Message-Id: <20210405224743.590029-28-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210405224743.590029-1-dmitry.baryshkov@linaro.org> References: <20210405224743.590029-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 --- drivers/clk/qcom/videocc-sm8150.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) -- 2.30.2 diff --git a/drivers/clk/qcom/videocc-sm8150.c b/drivers/clk/qcom/videocc-sm8150.c index 85b0bbc2b151..1afdbe4a249d 100644 --- a/drivers/clk/qcom/videocc-sm8150.c +++ b/drivers/clk/qcom/videocc-sm8150.c @@ -99,8 +99,8 @@ static struct clk_branch video_cc_iris_ahb_clk = { .enable_mask = BIT(0), .hw.init = &(struct clk_init_data){ .name = "video_cc_iris_ahb_clk", - .parent_data = &(const struct clk_parent_data){ - .hw = &video_cc_iris_clk_src.clkr.hw, + .parent_hws = (const struct clk_hw*[]){ + &video_cc_iris_clk_src.clkr.hw, }, .num_parents = 1, .flags = CLK_SET_RATE_PARENT, @@ -117,8 +117,8 @@ static struct clk_branch video_cc_mvs0_core_clk = { .enable_mask = BIT(0), .hw.init = &(struct clk_init_data){ .name = "video_cc_mvs0_core_clk", - .parent_data = &(const struct clk_parent_data){ - .hw = &video_cc_iris_clk_src.clkr.hw, + .parent_hws = (const struct clk_hw*[]){ + &video_cc_iris_clk_src.clkr.hw, }, .num_parents = 1, .flags = CLK_SET_RATE_PARENT, @@ -135,8 +135,8 @@ static struct clk_branch video_cc_mvs1_core_clk = { .enable_mask = BIT(0), .hw.init = &(struct clk_init_data){ .name = "video_cc_mvs1_core_clk", - .parent_data = &(const struct clk_parent_data){ - .hw = &video_cc_iris_clk_src.clkr.hw, + .parent_hws = (const struct clk_hw*[]){ + &video_cc_iris_clk_src.clkr.hw, }, .num_parents = 1, .flags = CLK_SET_RATE_PARENT, @@ -153,8 +153,8 @@ static struct clk_branch video_cc_mvsc_core_clk = { .enable_mask = BIT(0), .hw.init = &(struct clk_init_data){ .name = "video_cc_mvsc_core_clk", - .parent_data = &(const struct clk_parent_data){ - .hw = &video_cc_iris_clk_src.clkr.hw, + .parent_hws = (const struct clk_hw*[]){ + &video_cc_iris_clk_src.clkr.hw, }, .num_parents = 1, .flags = CLK_SET_RATE_PARENT,