From patchwork Mon Aug 26 12:14:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 172165 Delivered-To: patch@linaro.org Received: by 2002:ac9:5c4b:0:0:0:0:0 with SMTP id r11csp4069536ocp; Mon, 26 Aug 2019 05:16:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwx5fbgLy7/cOkO2U6E2XS7RcX9Wx7f+Hfea//wdz4FJD94TJqjScLNM2E9yiw4CGz1Guf0 X-Received: by 2002:a17:90a:3b04:: with SMTP id d4mr16410316pjc.80.1566821799837; Mon, 26 Aug 2019 05:16:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566821799; cv=none; d=google.com; s=arc-20160816; b=mjVg1BF8UGH2+gMoQ1/E+rUBEkPy8YdEbYPldZ538mW7mk2pFl/Fvmi5x8BiK+jzNJ VIw+XUzDvHpR1I1NfMwsd2ehb7Ps9fyo4PPWFeLhpnNc3dnmCizjqOuA4Bfl9VFsWg2+ tY1jso/EObxKHjMgoJR/kaMxLy5h+b2+nQgzWMd9cWuYS8TIPEjwy358BYt0y6p2ADkm uWmSV0Rrf6jfMZCNBBHlCJor8T8luGJoEawehNQbF65wNHbvPIzb/+PZjV//M1kU0eU5 lLP2vys2UV13qAiRvXB6Xe8lyWc//sTUg0Ae1ShPUvbosR857DPC1iveGwrqWtjKAoB9 x1nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yvNYzt7LBfbSvtvIq46XGs+n9qUblTBX7ENaGCEyT14=; b=oyy0jUU2JnuhvwVS4ZygUt9vWfbYNq9arw9/8QVdSwXBN1/MEerd+hQ7MxUWH3PURR RDhOQ1Ss7Pv5Thfyr1+WI1DRw14hecv2A83LxWRgjxMG1qnQZ0C3o/lWbmr8m9Pd14V3 grK8fBQKUJBA2TQV4yEbf7ZrE3Kvi3pvxvTyDotpVmnKKH/Ws2MN6Eps6heryTgUdsS/ r8O0VFGtpisDRlt5JriU9VsaAws7hXDIpxdSJc64cauD974Td+cE0kSnHqCQbwpJ2ARL KH7Fzp7oVjr4yqkEvvNmcnVnd3/bkzi3uZ2ZFbp/aTXalLmp0IvEK119s9YNOgRdgCrQ W9Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0p8Lp2aL; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14si2454327plo.47.2019.08.26.05.16.39; Mon, 26 Aug 2019 05:16:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0p8Lp2aL; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731712AbfHZMQi (ORCPT + 16 others); Mon, 26 Aug 2019 08:16:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:38060 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731709AbfHZMQi (ORCPT ); Mon, 26 Aug 2019 08:16:38 -0400 Received: from localhost.localdomain (unknown [122.178.200.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A9EED217F5; Mon, 26 Aug 2019 12:16:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566821797; bh=iwOFBOI7Gq5ajYrPylzZLoZNnSQjqr85990hVj91PIs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0p8Lp2aLQ4s0kJ2E1MbwWM0Obc5HqtoInRtyiIcxCCH07yLNekuwJqQXnGtmd7K4I 3s6ClIZK6Bf8ehUqGv4+q6Q31QtfZdNn9Rfx8rEvxEEG0KkPtQ/Pze64XSpqi735rA GhJ1yEAWi+Zol2W8IdVPRLRA9nupPqlaHUaEbibQ= From: Vinod Koul To: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , Michael Turquette , Rob Herring , Mark Rutland , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 2/4] clk: qcom: clk-rpmh: Convert to parent data scheme Date: Mon, 26 Aug 2019 17:44:51 +0530 Message-Id: <20190826121453.21732-3-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190826121453.21732-1-vkoul@kernel.org> References: <20190826121453.21732-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Convert the rpmh clock driver to use the new parent data scheme by specifying the parent data for board clock. Signed-off-by: Vinod Koul --- drivers/clk/qcom/clk-rpmh.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) -- 2.20.1 diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index c3fd632af119..97aa092f5f40 100644 --- a/drivers/clk/qcom/clk-rpmh.c +++ b/drivers/clk/qcom/clk-rpmh.c @@ -95,7 +95,10 @@ static DEFINE_MUTEX(rpmh_clk_lock); .hw.init = &(struct clk_init_data){ \ .ops = &clk_rpmh_ops, \ .name = #_name, \ - .parent_names = (const char *[]){ "xo_board" }, \ + .parent_data = &(const struct clk_parent_data){ \ + .fw_name = "xo_board", \ + .name = "xo", \ + }, \ .num_parents = 1, \ }, \ }; \ @@ -110,7 +113,10 @@ static DEFINE_MUTEX(rpmh_clk_lock); .hw.init = &(struct clk_init_data){ \ .ops = &clk_rpmh_ops, \ .name = #_name_active, \ - .parent_names = (const char *[]){ "xo_board" }, \ + .parent_data = &(const struct clk_parent_data){ \ + .fw_name = "xo_board", \ + .name = "xo", \ + }, \ .num_parents = 1, \ }, \ }