From patchwork Tue Dec 22 10:16:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 58852 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp3139760lbb; Tue, 22 Dec 2015 02:17:00 -0800 (PST) X-Received: by 10.67.24.104 with SMTP id ih8mr34456704pad.124.1450779420122; Tue, 22 Dec 2015 02:17:00 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sw10si3585212pab.55.2015.12.22.02.16.59; Tue, 22 Dec 2015 02:17:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932662AbbLVKQ7 (ORCPT + 11 others); Tue, 22 Dec 2015 05:16:59 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:33003 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932181AbbLVKQ6 (ORCPT ); Tue, 22 Dec 2015 05:16:58 -0500 Received: by mail-pa0-f44.google.com with SMTP id cy9so33023929pac.0 for ; Tue, 22 Dec 2015 02:16:58 -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=rOvJ41iN7105W+t/8IpfrUsLBRVeNu23vqNvPJTDVPE=; b=NnFKZFT1+VdCHPSe+g1UlG95EgtlEbBIf6F2Xi2YYNXURR0fZTu0sVwAdEuKjFqiRZ cKOM28X2uxRx63CT57I6ApwRFcV4CEQQ13Kza2NYn79qwqThF8ulp3TYu8T8IPKjKGKx 0uWuajN+/3wtr0/So7sqOdFwVPYWbulQjSxhc= 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=rOvJ41iN7105W+t/8IpfrUsLBRVeNu23vqNvPJTDVPE=; b=cs74EhlmaqO0GuA129x0jU24pzxH3w96M/GIcLeyf0hU2VIRPgCvgJkEGMVmUm4V/s AnqmfPUt02YEw7U2OroxaLPbohk6Pw0BFFsRG6dZ4Y3f6QICyi8mBlclouoeK97iA1Sk aoMSSUq07a5aCBZJU+RO/qLWi4AouM+1FWMsAGutG08feWy9/gpa7qiVXgtzuSZKq3m/ QxSNwmMCS3YhMGTYU1TlOuk8qOdYSLGqPdXLtpNts+lToAmvEt6EbG4xajXeoXNP6IGx EU0Zjr9477xYyC4zQdlAJbjxhgaktyRZGpWPnjBHrUwm/4NjjRQrCIUOKje5NrdtV+Hc eQHw== X-Gm-Message-State: ALoCoQl6flz1VAz/W0EV6wP91F8IGqx3vJLq6Z9JygnNShKUI4hkXFie0+IQWbjawHcUMUHc2JyP/6Gh8yX/MPGI+lmt3UBxjQ== X-Received: by 10.66.164.234 with SMTP id yt10mr34272797pab.11.1450779418239; Tue, 22 Dec 2015 02:16:58 -0800 (PST) Received: from localhost ([122.171.29.67]) by smtp.gmail.com with ESMTPSA id q8sm43101156pap.45.2015.12.22.02.16.57 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 22 Dec 2015 02:16:57 -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 Subject: [PATCH 10/17] cpufreq: dt: Rename 'need_update' to 'opp_v1' Date: Tue, 22 Dec 2015 15:46:11 +0530 Message-Id: <0107c166a02315b3e04dd3a9e1af5c59f469ce3c.1450777582.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.7.0.rc1.186.g94414c4 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 --- drivers/cpufreq/cpufreq-dt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.7.0.rc1.186.g94414c4 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" 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/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c index 45ff7671a883..7af6e466205f 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)