From patchwork Tue Feb 9 05:00:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 61495 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1831276lbl; Mon, 8 Feb 2016 21:02:36 -0800 (PST) X-Received: by 10.66.139.234 with SMTP id rb10mr47144704pab.82.1454994156356; Mon, 08 Feb 2016 21:02:36 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wf1si12920500pab.219.2016.02.08.21.02.35; Mon, 08 Feb 2016 21:02:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=pass header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756110AbcBIFC0 (ORCPT + 30 others); Tue, 9 Feb 2016 00:02:26 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:34326 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753005AbcBIFCA (ORCPT ); Tue, 9 Feb 2016 00:02:00 -0500 Received: by mail-pa0-f53.google.com with SMTP id kp3so1849486pab.1 for ; Mon, 08 Feb 2016 21:01:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=JYP4HTVJObulhupj+MhPKNWr0NZzpySd0fM6QuX730A=; b=Op5h1KWkL2rRUedJR4rIgXwC1cxNswl1ybL8XpFSQInWgzMkNat16Wq3PMGMlIX+/r V3S3CdqL5fiM8H6NAZtYaG0q03HWy1nAhCzsXL3cMyMLgY+mENW1ZpmVtNuF6B7VppBQ HgLou959zMq47OuAMF8KG9hND8E6jtPyq5SY4= 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:in-reply-to:references; bh=JYP4HTVJObulhupj+MhPKNWr0NZzpySd0fM6QuX730A=; b=Y+HQTJ7B0cU7fokWpOsF6iZierOVXq4xTG4bVmlNPQInpL9LU6fH/H95Yrb0PS1X5x ZKKoifx4u6wb58UW/2C8F2qhDcmV//XnR/xaD9pDId0XjFq1+uGnw60Y+od6ie5ol2Ue U4DVGtb1TbR0KscIaYYXHk0OROL8I5JIbl9upG4PKfmpszk8Mn4kHPhUpYpH2NPfVB1+ oUKhdCfUoOQuGEorhDY5SoPSgwj7zU7f8AWVGv0bxoHVw18RwoAMWdOo+OjzdT2B+c9+ qxstFIdao2FO/VoHvBKfagsZdf28fRbRqRSulXT8Be4+IVOjeEfXjUDKOXiqUSVCu0Yw 3sSw== X-Gm-Message-State: AG10YOTq1PtYXJcNg2uYYf3gQD4lQl0gjx27cnBT3odSMRXbkH3G+fYp2ZFwPWdKDqGFlFKY X-Received: by 10.67.3.134 with SMTP id bw6mr47074595pad.154.1454994119773; Mon, 08 Feb 2016 21:01:59 -0800 (PST) Received: from localhost ([122.172.22.246]) by smtp.gmail.com with ESMTPSA id k14sm1147782pfj.0.2016.02.08.21.01.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Feb 2016 21:01:59 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Stephen Boyd , nm@ti.com, Viresh Kumar , linux-kernel@vger.kernel.org (open list) Subject: [PATCH V3 09/16] cpufreq: dt: Rename 'need_update' to 'opp_v1' Date: Tue, 9 Feb 2016 10:30:41 +0530 Message-Id: <0c0134371c6750bb3e85caa973ce6bcf33ac5d7a.1454992187.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.7.1.370.gb2aa7f8 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org That's the real purpose of this field, i.e. to take special care of old OPP V1 bindings. Lets name it accordingly, so that it can be used elsewhere. Signed-off-by: Viresh Kumar Reviewed-by: Stephen Boyd --- drivers/cpufreq/cpufreq-dt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.7.1.370.gb2aa7f8 diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c index ace0168274d4..0047d20803db 100644 --- a/drivers/cpufreq/cpufreq-dt.c +++ b/drivers/cpufreq/cpufreq-dt.c @@ -199,7 +199,7 @@ static int cpufreq_init(struct cpufreq_policy *policy) struct dev_pm_opp *suspend_opp; unsigned long min_uV = ~0, max_uV = 0; unsigned int transition_latency; - bool need_update = false; + bool opp_v1 = false; int ret; ret = allocate_resources(policy->cpu, &cpu_dev, &cpu_reg, &cpu_clk); @@ -223,7 +223,7 @@ static int cpufreq_init(struct cpufreq_policy *policy) * finding shared-OPPs for backward compatibility. */ if (ret == -ENOENT) - need_update = true; + opp_v1 = true; else goto out_node_put; } @@ -251,7 +251,7 @@ static int cpufreq_init(struct cpufreq_policy *policy) goto out_free_opp; } - if (need_update) { + if (opp_v1) { struct cpufreq_dt_platform_data *pd = cpufreq_get_driver_data(); if (!pd || !pd->independent_clocks)