From patchwork Mon Apr 5 22:47:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 415329 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4049509jai; Mon, 5 Apr 2021 15:48:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcjSyf6m5hUFpVUvPqbErGW3aaSN4pTEhfzXFKpVi/0bcueyLHIFxAf9yoDuaNdZeKUPDy X-Received: by 2002:a50:c004:: with SMTP id r4mr19020853edb.192.1617662906140; Mon, 05 Apr 2021 15:48:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617662906; cv=none; d=google.com; s=arc-20160816; b=ahPiisYN/oHWcHgKJr0WmZ8PcCDuJAPNxCA0n2LaIAjqr54jNTA25mB62VZjTtG5rb VRJJXn/0azz58sVsXTNK9b7aCtF/iC8R6zbkLo3FBqlzUAa3TEtrLabtBJWedU+hA3oX e2HksrTkupUaU/QhhJ6NF4huu9JxXCq/dQhtoMUUZuGbdtLt7pOjNYYzV66tXmWd9vU3 lAmU+lreMqYjtj7OQRIP+s9RHcErYlcIknMboHF4d3WZDzoLqBx8H5kzT3kk3v/qvy6J 2ai0sertwewi1Q7dl4sheWutIh2TVmXn9jr/+nnJmQ85w0vtiY2wjgXJpBeEfo8yhJEm TeAw== 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=sqK2nvfCrxnoSEWlc93GM77ZwGXk+jciboxSXDoLoR4=; b=zGPWXPyrw+z3LU//pc2U6BL71YUvA6HSq+KIYSArnHWPOphM/N2bc6TS8PaDrcq9Ha VUabI7CYvqrePTPwu+u2VxgxBQ/rdI4BY5nBUUpQPakhE5+N12cSRiqZ4svX+qk2mRlz D5J/27QkXVduJnXzHzfKThS5gsseB/w76LqpNxLIB2GC3tJrid/s+zzt/ys68XY4DFgl 7lKmT+Swei9an1qySZihLLZVZUBKHliiheDr3PXMFrAMOU2PDlejQA4/dqfbB1lMlA/w lMvvk67EfDK/0DUmeiRFImuLTUrO2vdrdv8kg/6stQ+X4IepIZ7UuYevrV+KBlyatSt/ K89A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U57Ll3h1; 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.25; Mon, 05 Apr 2021 15:48:26 -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=U57Ll3h1; 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 S242878AbhDEWsM (ORCPT + 17 others); Mon, 5 Apr 2021 18:48:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242867AbhDEWsI (ORCPT ); Mon, 5 Apr 2021 18:48:08 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 591C2C061794 for ; Mon, 5 Apr 2021 15:48:01 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id n8so895584lfh.1 for ; Mon, 05 Apr 2021 15:48:01 -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=sqK2nvfCrxnoSEWlc93GM77ZwGXk+jciboxSXDoLoR4=; b=U57Ll3h1L6mezAbkwWmFgct4w1SN9EIe4HVioQ3GH8wdoDH5BdOVjullOhABjEDyiD nEWup72z5+oQ+AXNFA1PNb6NlwJmclF2DzlzZerWjgYYjxfDU2TERN8+ZXbz74IUSnwd L2ZUIHXd7lBY4srAFFBo4JF6wrze8vZuMvb7hbfHlNzt7lIeDIyn0ys+rpwGx1gXQezq 0skdV2DwAJEWc332wf86B6QyNFenFN/oUiQoeG+t19Yu2WzU1nWxVBVKT1XrAEqPQbce LTc0c0DZaKLpb5KSI8fx8bpayqY11g/Xl7dOO+vGBDWb0ZWBlQ7Z+mv3pABoAj+2roJa SZBQ== 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=sqK2nvfCrxnoSEWlc93GM77ZwGXk+jciboxSXDoLoR4=; b=X0p0AxV28pjwTGxEbOqjRPUz01Aq8aCqbbJlxhm96WPSo5QphczJ7RcxqBvrsLV/6E EjK+4wkOwai1fbaYAh9b99pHcmw9U38jHGBAkn7ysXMn5ccmY8JBCji8opA29eH46Zgb 8A8eJmd3sDH1TIXpvj6q7riiWoA+0aK/GNV/YMju3xAs0NnjG75bbd4+VDJYCNETqc/h dJSN7isbNZ4iptp/P572dq7pvT+SumYmdoXQuIFPuswQfSS7yaGfRlLz7ShbtcZ3ziWP 7iBro70GVWT63XIQ7DzlbU1VpA0zPaDKK766V1/XpYDa+mP1A+lT/yprjqqckn4hvPB9 PBnw== X-Gm-Message-State: AOAM532nCDlBwkxXkbmmkDbgW566Xk1nrI6ulh//71yh9IHmgGM9R/Wf 7rwSHlvSBsWefZw2NBccNA1PqZRu+Dq0sA== X-Received: by 2002:a19:c20b:: with SMTP id l11mr3265153lfc.316.1617662879925; Mon, 05 Apr 2021 15:47:59 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id 130sm213748lfg.263.2021.04.05.15.47.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Apr 2021 15:47:59 -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 21/33] clk: qcom: gcc-sdx55: use parent_hws where possible Date: Tue, 6 Apr 2021 01:47:31 +0300 Message-Id: <20210405224743.590029-22-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/gcc-sdx55.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.30.2 diff --git a/drivers/clk/qcom/gcc-sdx55.c b/drivers/clk/qcom/gcc-sdx55.c index e3b9030b2bae..4fca19006a77 100644 --- a/drivers/clk/qcom/gcc-sdx55.c +++ b/drivers/clk/qcom/gcc-sdx55.c @@ -70,8 +70,8 @@ static struct clk_alpha_pll_postdiv gpll0_out_even = { .width = 4, .clkr.hw.init = &(struct clk_init_data){ .name = "gpll0_out_even", - .parent_data = &(const struct clk_parent_data){ - .hw = &gpll0.clkr.hw, + .parent_hws = (const struct clk_hw*[]){ + &gpll0.clkr.hw, }, .num_parents = 1, .ops = &clk_alpha_pll_postdiv_lucid_ops, @@ -106,8 +106,8 @@ static struct clk_alpha_pll_postdiv gpll4_out_even = { .width = 4, .clkr.hw.init = &(struct clk_init_data){ .name = "gpll4_out_even", - .parent_data = &(const struct clk_parent_data){ - .hw = &gpll4.clkr.hw, + .parent_hws = (const struct clk_hw*[]){ + &gpll4.clkr.hw, }, .num_parents = 1, .ops = &clk_alpha_pll_postdiv_lucid_ops,