From patchwork Wed Mar 18 13:32:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 6039141 Return-Path: X-Original-To: patchwork-linux-arm-msm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D3E7E9F318 for ; Wed, 18 Mar 2015 13:33:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3D69820431 for ; Wed, 18 Mar 2015 13:33:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 016AC204FB for ; Wed, 18 Mar 2015 13:33:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932299AbbCRNc7 (ORCPT ); Wed, 18 Mar 2015 09:32:59 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:37838 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933229AbbCRNcP (ORCPT ); Wed, 18 Mar 2015 09:32:15 -0400 Received: by wixw10 with SMTP id w10so39989786wix.0 for ; Wed, 18 Mar 2015 06:32:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qMEByCliP9UJfalh8mycUU2cVVtJ1IlgJlt8KgYXlcw=; b=XIX392umoGMlNDn3z/Vr2ga7EFCPkspdkv64jbfEDtQbsBGnUglIfmqsC9ZMqePpQf /ET/pQFyGnxFYvFBgAvL1Xck3TRTGs0FYKzBjOreOg24MUQYJrPsBrYLnXwcypO2Zz9q hBCtyH8nDxpBlL1aptNTgUEEerJF4VF96XXWa1sTC9RmnzUNgAldy25D19+Np/1+Avch G1ziKsYJoyQSlV1ZYpDo7NrrFUiLnOB6GvK1PtmF6KHRvbkpJyIW8esrnnfzO0gzKTR7 pl+c1QD/ScGizZIwF3z3JGfjEpXwwB+PPemsnisFUpT/1aOahkchVNTQ83oGu8N9bVkB dq3Q== X-Gm-Message-State: ALoCoQmnyycr1TrpttLbt4ietKKQ5lL/0eeRpsmzNhmL8cypVjLOLADeaUHPupTxLNAGiWjGYPgq X-Received: by 10.194.234.40 with SMTP id ub8mr144676768wjc.100.1426685533902; Wed, 18 Mar 2015 06:32:13 -0700 (PDT) Received: from mms.wifi.mm-sol.com ([37.157.136.206]) by mx.google.com with ESMTPSA id cf12sm24531838wjb.10.2015.03.18.06.32.12 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Mar 2015 06:32:13 -0700 (PDT) From: Georgi Djakov To: sboyd@codeaurora.org, mturquette@linaro.org Cc: galak@codeaurora.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v1 9/9] clk: qcom: Convert msm8660 to parent_map tables Date: Wed, 18 Mar 2015 15:32:15 +0200 Message-Id: <1426685535-25071-10-git-send-email-georgi.djakov@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1426685535-25071-1-git-send-email-georgi.djakov@linaro.org> References: <1426685535-25071-1-git-send-email-georgi.djakov@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Georgi Djakov --- drivers/clk/qcom/gcc-msm8660.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/clk/qcom/gcc-msm8660.c b/drivers/clk/qcom/gcc-msm8660.c index f366e68f7316..e9fc9389f977 100644 --- a/drivers/clk/qcom/gcc-msm8660.c +++ b/drivers/clk/qcom/gcc-msm8660.c @@ -59,13 +59,16 @@ static struct clk_regmap pll8_vote = { }, }; -#define P_PXO 0 -#define P_PLL8 1 -#define P_CXO 2 +enum { + P_PXO, + P_PLL8, + P_CXO, +}; -static const u8 gcc_pxo_pll8_map[] = { - [P_PXO] = 0, - [P_PLL8] = 3, +static const struct parent_map gcc_pxo_pll8_map[] = { + { P_PXO, 0 }, + { P_PLL8, 3 }, + { } }; static const char *gcc_pxo_pll8[] = { @@ -73,10 +76,11 @@ static const char *gcc_pxo_pll8[] = { "pll8_vote", }; -static const u8 gcc_pxo_pll8_cxo_map[] = { - [P_PXO] = 0, - [P_PLL8] = 3, - [P_CXO] = 5, +static const struct parent_map gcc_pxo_pll8_cxo_map[] = { + { P_PXO, 0 }, + { P_PLL8, 3 }, + { P_CXO, 5 }, + { } }; static const char *gcc_pxo_pll8_cxo[] = {