From patchwork Thu Jan 28 08:20:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 60686 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp332998lbb; Thu, 28 Jan 2016 00:25:20 -0800 (PST) X-Received: by 10.67.14.136 with SMTP id fg8mr2631258pad.105.1453969520724; Thu, 28 Jan 2016 00:25:20 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wg9si15307112pab.242.2016.01.28.00.25.20; Thu, 28 Jan 2016 00:25:20 -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 S965553AbcA1IZS (ORCPT + 11 others); Thu, 28 Jan 2016 03:25:18 -0500 Received: from mail-pf0-f176.google.com ([209.85.192.176]:33590 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934435AbcA1IVW (ORCPT ); Thu, 28 Jan 2016 03:21:22 -0500 Received: by mail-pf0-f176.google.com with SMTP id x125so20095671pfb.0 for ; Thu, 28 Jan 2016 00:21:21 -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=FHaRvgLZHoKGVV0Zie8eTR/rBpWgnb5BriKt5t+lDp0=; b=Gux+mmo92ncF/pjZeqAs93tuq35JZQabz7/AxFG8u4JrhewQMj4NGKlBzkfWrkcYJW LB/j1cJFaR706OFiyq5toEoqrcusWocC5o8gm0exEGBqESJk/mB7Xc9us2wP9rbJpN8t bqIvBSZf7mXntd6Hshig0etd4VL9FqlizrqoM= 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=FHaRvgLZHoKGVV0Zie8eTR/rBpWgnb5BriKt5t+lDp0=; b=dGNavfSQS3uYuAmLgXJ/4TLnBd3Q/r7xTrvH3MQ47NfOMrmJDFeRkCF0a+9W8uT8Jh PvBqoc1iGsE/tNQSI/ZcUf+kJTWCtqbzxeuNLQY5FUAYYuz8ErwevNQivsvkqwoF6+b3 ZycV18tYEUaspzTkJg0GPe01Ns7z9UcGYSzJgFqF/en0reOqco3MZKJIYUjtuK9l7J7T juMesexRv0+UNX9qceCoccCNPMCWDXa6w7yBE1+NNx8vde9xRmXSYfyRCbKYH+nsEzHN y2QO+2ujbLm5u8QK3Ze0AhMUEq+3eaGTAM25DD6wnWnBBPGy0Lk7N5GmEMpPOS0qx8Ld x9hQ== X-Gm-Message-State: AG10YORAzYXCZ1trRCPTber0Eo4qbzmiLURlwztd1r1PsVH+o5Dy7jVEQoQjZxj59v4f420l X-Received: by 10.98.8.218 with SMTP id 87mr2741006pfi.39.1453969281602; Thu, 28 Jan 2016 00:21:21 -0800 (PST) Received: from localhost ([122.171.121.234]) by smtp.gmail.com with ESMTPSA id n84sm14211690pfa.45.2016.01.28.00.21.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jan 2016 00:21:21 -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 V2 09/16] cpufreq: dt: Rename 'need_update' to 'opp_v1' Date: Thu, 28 Jan 2016 13:50:38 +0530 Message-Id: X-Mailer: git-send-email 2.7.0.79.gdc08a19 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 Reviewed-by: Stephen Boyd --- drivers/cpufreq/cpufreq-dt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.7.0.79.gdc08a19 -- 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 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)