From patchwork Tue Feb 26 13:42:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Laurent Navet [Mali]" X-Patchwork-Id: 2185521 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id E687BDF215 for ; Tue, 26 Feb 2013 13:39:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757948Ab3BZNji (ORCPT ); Tue, 26 Feb 2013 08:39:38 -0500 Received: from mail-wg0-f41.google.com ([74.125.82.41]:56252 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757797Ab3BZNjh (ORCPT ); Tue, 26 Feb 2013 08:39:37 -0500 Received: by mail-wg0-f41.google.com with SMTP id ds1so4355412wgb.2 for ; Tue, 26 Feb 2013 05:39:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=LNd2ILI6pKNTKyYb9FupdGtikbf3qEftms454/rHAtQ=; b=1HFC14hJKaQnsjhp6PCeabFJNylBA2TmYLcPs6sGvasxZ9oCsYlgun/1+kDDg9B2nj DBG8KLkiaV5IROFZQbLRUQ6RjIYY0ET2ip5J8GDP4tirzo2SEvNWINO8Qb96RV7uRwmI JO2Um/ed8RWxK1Mpe6EtYfSirjsA4Y1SPD26Lj0f07qw6/cddoHBny/aoOnXAkX8t+A1 CKiD2ePOASXg9wFRGVffGecsw8G95+fbbAAhnCSFhTG9ZDawut2kg20yKUUcj6AbJmIV kplczNSO9cTV1Q/WzZIdN3QWMrD81N7iCDiVItDm62hqmlybGbdzlWPW3SD/hrOt98DK PbVA== X-Received: by 10.180.103.161 with SMTP id fx1mr19381864wib.25.1361885975941; Tue, 26 Feb 2013 05:39:35 -0800 (PST) Received: from localhost.localdomain (ANantes-257-1-50-142.w90-25.abo.wanadoo.fr. [90.25.65.142]) by mx.google.com with ESMTPS id fv2sm2027965wib.6.2013.02.26.05.39.34 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Feb 2013 05:39:35 -0800 (PST) From: Laurent Navet To: rui.zhang@intel.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Laurent Navet Subject: [PATCH] drivers: thermal: cpu_cooling: fix checkpatch warning Date: Tue, 26 Feb 2013 14:42:41 +0100 Message-Id: <1361886162-9387-1-git-send-email-laurent.navet@gmail.com> X-Mailer: git-send-email 1.7.10.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org - WARNING: Avoid CamelCase: Signed-off-by: Laurent Navet --- drivers/thermal/cpu_cooling.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index 836828e..47b7d32 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -175,8 +175,8 @@ static int cpufreq_apply_cooling(struct cpufreq_cooling_device *cpufreq_device, unsigned long cooling_state) { unsigned int cpuid, clip_freq; - struct cpumask *maskPtr = &cpufreq_device->allowed_cpus; - unsigned int cpu = cpumask_any(maskPtr); + struct cpumask *mask = &cpufreq_device->allowed_cpus; + unsigned int cpu = cpumask_any(mask); /* Check if the old cooling action is same as new cooling action */ @@ -191,7 +191,7 @@ static int cpufreq_apply_cooling(struct cpufreq_cooling_device *cpufreq_device, cpufreq_device->cpufreq_val = clip_freq; notify_device = cpufreq_device; - for_each_cpu(cpuid, maskPtr) { + for_each_cpu(cpuid, mask) { if (is_cpufreq_valid(cpuid)) cpufreq_update_policy(cpuid); }