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: 45946 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 847302153C for ; Wed, 18 Mar 2015 13:33:13 +0000 (UTC) Received: by lbvp9 with SMTP id p9sf7367221lbv.0 for ; Wed, 18 Mar 2015 06:33:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=oeq2ljr5BEPSIQBZDwe3JHLzHWQfyFeJtLxizHW7gec=; b=F32jriixIv+GFVBBngWUw6Q6+caK1L/WCtLDi5vXpJjF/ePHM+SvJPuht3oHE1hJIU 7IcbvVxJfAg2MBEjmki91RaHHmA3c9ufDfOjGwjDQlRVGLiLKoZrJ50IymKYrD+1xnD2 tQjvGevzOB2v2jun3e2f/bAIjo8/qUGe1Ttwj5jAh4l7uyu5rvGAWfzeggbHMSengAyA zifM705lbmaNbjyy0TdkhKfrEZ7Bye7Z6Za7JMEbB7YdVFq0U+sQbmhBsuzZfUkzBho5 wRH1WSPO1nMt5dfZSxf5M1CYIQh+GenVY8EH2j3hRPsT4Q5ngdkDC4jOrO7c7ZA2SHT3 VcHw== X-Gm-Message-State: ALoCoQk3kXxUzp3n28N5lr1LQLDbWMq9QQWKAEjJ80Rs6Nd4q4M7hJrbS5VCvAHVl/plWg6h6sZL X-Received: by 10.180.11.34 with SMTP id n2mr767787wib.2.1426685592485; Wed, 18 Mar 2015 06:33:12 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.225 with SMTP id n1ls164310lah.52.gmail; Wed, 18 Mar 2015 06:33:12 -0700 (PDT) X-Received: by 10.152.8.15 with SMTP id n15mr37144759laa.41.1426685592050; Wed, 18 Mar 2015 06:33:12 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id ax6si12928521lbc.65.2015.03.18.06.33.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Mar 2015 06:33:12 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbnq5 with SMTP id q5so1470261lbn.0 for ; Wed, 18 Mar 2015 06:33:12 -0700 (PDT) X-Received: by 10.112.212.106 with SMTP id nj10mr45546181lbc.36.1426685591925; Wed, 18 Mar 2015 06:33:11 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp1159670lbj; Wed, 18 Mar 2015 06:33:10 -0700 (PDT) X-Received: by 10.70.47.193 with SMTP id f1mr145085994pdn.158.1426685589432; Wed, 18 Mar 2015 06:33:09 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u14si36127279pdi.41.2015.03.18.06.33.07; Wed, 18 Mar 2015 06:33:09 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933350AbbCRNdB (ORCPT + 27 others); Wed, 18 Mar 2015 09:33:01 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:37838 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933232AbbCRNcP (ORCPT ); Wed, 18 Mar 2015 09:32:15 -0400 Received: by wixw10 with SMTP id w10so39989785wix.0 for ; Wed, 18 Mar 2015 06:32:14 -0700 (PDT) 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-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: georgi.djakov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ 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[] = {