From patchwork Sun Sep 22 01:21:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20515 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BCCC125E85 for ; Sun, 22 Sep 2013 01:22:48 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id z20sf1935031yhz.11 for ; Sat, 21 Sep 2013 18:22:48 -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:in-reply-to:references :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=8VQ1k0JFE335T11+/zFO0OUoyg4tSdHSj2nel70u1VE=; b=kcCxSZwzdOy6t5Tm5BcRQ0gUvGExVePgE+jRKmbZDmgrbql5hgmOqXEJ5I1T1nb1Ca vGj70JiXttTqmAo/op10RbPEy8VpYLioylEcD9iFhccbPfrodyW6Xs3s4Nyi6Z/K2oIF Q6DMi3jipos1c9L3r9tWzB58pjVmO5rc2TUgQeWEAFfte2ygdGSYlmoXrP5vsvmkbLzc 1AY2PRHawCwZap+c1AMWXBydE+SVQRKKBs3lBsCstivL4AU5uppKIZ3kP1Cxh80mzho+ CwzcDL7ozkuP5X8Uvn57W1WZ2NqWIsWvPHx2B2n3ND6WoShMvar4cZyu3kectiMVY4fp txjQ== X-Gm-Message-State: ALoCoQl7euJLvk9wPScdf3xyiZ4j3bcKm1cRcW2IUhLjkutvMzMHXTpbuq/H6wytwzlvAVOmZg/9 X-Received: by 10.224.93.19 with SMTP id t19mr6596436qam.3.1379812968583; Sat, 21 Sep 2013 18:22:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.70.161 with SMTP id n1ls758057qeu.27.gmail; Sat, 21 Sep 2013 18:22:48 -0700 (PDT) X-Received: by 10.220.43.19 with SMTP id u19mr14104766vce.3.1379812968508; Sat, 21 Sep 2013 18:22:48 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id gq10si4544806vdc.4.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 21 Sep 2013 18:22:48 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id hu8so1343594vcb.3 for ; Sat, 21 Sep 2013 18:22:48 -0700 (PDT) X-Received: by 10.220.199.5 with SMTP id eq5mr14170733vcb.16.1379812968435; Sat, 21 Sep 2013 18:22:48 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp91744vcz; Sat, 21 Sep 2013 18:22:47 -0700 (PDT) X-Received: by 10.68.244.168 with SMTP id xh8mr15918122pbc.3.1379812967570; Sat, 21 Sep 2013 18:22:47 -0700 (PDT) Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by mx.google.com with ESMTPS id gg2si17461173pac.275.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 21 Sep 2013 18:22:47 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.44 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.44; Received: by mail-pb0-f44.google.com with SMTP id xa7so1820522pbc.17 for ; Sat, 21 Sep 2013 18:22:47 -0700 (PDT) X-Received: by 10.66.242.17 with SMTP id wm17mr17123223pac.102.1379812967177; Sat, 21 Sep 2013 18:22:47 -0700 (PDT) Received: from localhost ([122.167.152.64]) by mx.google.com with ESMTPSA id hx1sm24626938pbb.35.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 21 Sep 2013 18:22:46 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl, daniel.lezcano@linaro.org Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Viresh Kumar Subject: [PATCH 13/21] cpuidle: use drv instead of cpuidle_driver in show_current_driver() Date: Sun, 22 Sep 2013 06:51:05 +0530 Message-Id: X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Instances of "struct cpuidle_driver *" are consistently named as "drv" in cpuidle core. Its broken only at one place: show_current_driver(). Fix it for consistency. Signed-off-by: Viresh Kumar Acked-by: Daniel Lezcano --- drivers/cpuidle/sysfs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/cpuidle/sysfs.c b/drivers/cpuidle/sysfs.c index a022393..e918b6d 100644 --- a/drivers/cpuidle/sysfs.c +++ b/drivers/cpuidle/sysfs.c @@ -52,12 +52,12 @@ static ssize_t show_current_driver(struct device *dev, char *buf) { ssize_t ret; - struct cpuidle_driver *cpuidle_driver; + struct cpuidle_driver *drv; spin_lock(&cpuidle_driver_lock); - cpuidle_driver = cpuidle_get_driver(); - if (cpuidle_driver) - ret = sprintf(buf, "%s\n", cpuidle_driver->name); + drv = cpuidle_get_driver(); + if (drv) + ret = sprintf(buf, "%s\n", drv->name); else ret = sprintf(buf, "none\n"); spin_unlock(&cpuidle_driver_lock);