From patchwork Thu Aug 22 17:01:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 11109655 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 97B1813A4 for ; Thu, 22 Aug 2019 17:03:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6D1BE23405 for ; Thu, 22 Aug 2019 17:03:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566493392; bh=G20B2Sj+t5RLI31yQu/iPrpehHHuQshNQDtv8ZsXKG8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=B7Ws2U7/LtD/tt+7kN160IKwMSDp+JzPqmMzALNA9WEcnAxYQojeCanxWfacKdvS/ fRsNkhII2nftTnFt/jtPnTLlpo61zKXu6KpGwa36xomsHWDc17Eq2IuvtefqdMS+rQ MJtp31khMBiDDyYt8BrXHeiRHv3uXnL/ak3uNxAo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387965AbfHVRDL (ORCPT ); Thu, 22 Aug 2019 13:03:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:55518 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729506AbfHVRDL (ORCPT ); Thu, 22 Aug 2019 13:03:11 -0400 Received: from localhost.localdomain (unknown [171.61.89.145]) (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 2FD9E20870; Thu, 22 Aug 2019 17:03:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566493390; bh=G20B2Sj+t5RLI31yQu/iPrpehHHuQshNQDtv8ZsXKG8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TjJs0ipqr4j0e1Sd+2YOe+ViVKB/HVmU+vQ7RwkFxPogKe+Pu7AwHB/2JkNNQ8MnY TSF7R+advtsCOTZTXNeYeFHHO9kyIAuDzMsmnftVeCNQS+WPdTLW5R6aGmD4fU6VKN DIx4+790TbUrJ0rPRYDotdr8ClUgtXyiEYF9pua0= 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 v3 2/4] clk: qcom: clk-rpmh: Convert to parent data scheme Date: Thu, 22 Aug 2019 22:31:38 +0530 Message-Id: <20190822170140.7615-3-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190822170140.7615-1-vkoul@kernel.org> References: <20190822170140.7615-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(-) diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index c3fd632af119..0bced7326a20 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_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_board", \ + .name = "xo_board", \ + }, \ .num_parents = 1, \ }, \ }