From patchwork Mon Aug 26 17:31:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 11115155 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 587FF184E for ; Mon, 26 Aug 2019 17:32:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2984D2186A for ; Mon, 26 Aug 2019 17:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566840777; bh=/bpf7xC2H//gRGlYPbogjUfpowEtufJcXobWye4Cnlk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=DyBOcenoDBXNmsxs5B98hqi7dmMlg00IfLV9rKFsq9Flw03F47KKEwePrgFe/aUyL HTlH0hoQ1kJS9yfUY4n5OpqhaiSdDB+yzgj4Tbz3XV/E7ramAwCgQoZEmXOIOaPvJ5 w1GoCVE4ZXlmO0TR1ojXZxzzDc/oyklmZxGSw1NY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727211AbfHZRcz (ORCPT ); Mon, 26 Aug 2019 13:32:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:53430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733008AbfHZRcy (ORCPT ); Mon, 26 Aug 2019 13:32:54 -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 C5AE021872; Mon, 26 Aug 2019 17:32:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566840773; bh=/bpf7xC2H//gRGlYPbogjUfpowEtufJcXobWye4Cnlk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ku/zyUq//J5sP5b/Jc4aUd/6Qs8Ci3Ac9uMLwlQI2K4DUTxDW1HXebjnTDhl1RB1S eUX9JmFeIGQjvCqit+C980G5SLh9DnmmZ8NjkBtNT86E7B9MMdTxTSZGTDA/HYJcWt cI+GHVXUB/KIWGVbVy72ZT4uZAtNFgagPaiU4Q0E= 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 v5 2/4] clk: qcom: clk-rpmh: Convert to parent data scheme Date: Mon, 26 Aug 2019 23:01:18 +0530 Message-Id: <20190826173120.2971-3-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190826173120.2971-1-vkoul@kernel.org> References: <20190826173120.2971-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 Reviewed-by: Bjorn Andersson --- drivers/clk/qcom/clk-rpmh.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index c3fd632af119..35d55aee6a01 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", \ + .name = "xo_board", \ + }, \ .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", \ + .name = "xo_board", \ + }, \ .num_parents = 1, \ }, \ }