From patchwork Thu Oct 3 15:56:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20801 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f197.google.com (mail-ye0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5998425CAB for ; Thu, 3 Oct 2013 15:58:23 +0000 (UTC) Received: by mail-ye0-f197.google.com with SMTP id q5sf4137741yen.8 for ; Thu, 03 Oct 2013 08:58:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state: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=TGuNsjiojVohKd4MTjugIgDYPL1u0p+pJPoZcWbLH9Y=; b=J2GTD7CkwxwzpY/lUpDjc9rZ2cu6csRj9PIDN+KEqcE5eGUsacHXVhtZEhg2yZl3hk LTLklDRh0fSZoNgpBWTSUSqA3Y2iZSpBGNDXVdaJljoUsq8JDO6g9FRw5hB/1l60YFVm 6vKZ7eays6nG+jWaitzzDA4u9s+uqiT5dvzM6Tudk5CLNBuINloYgw5Ln3s3Hod3fGEN WjSqrhJdQ5ylirYv10rH1qtSJ3ZIUjI9vkw5Jtlha9ZNbBFE0FNdvG/RyTW2F13QMPSG FqDdu4p261DkQSX6a+lmv46FT4hhxljq1UHJQPPU7K7Wj7q3GzBKSw6JKeQqhbu0q32X VbWw== X-Received: by 10.58.243.232 with SMTP id xb8mr1311038vec.3.1380815903143; Thu, 03 Oct 2013 08:58:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.39.163 with SMTP id q3ls1087550qek.31.gmail; Thu, 03 Oct 2013 08:58:23 -0700 (PDT) X-Received: by 10.221.64.17 with SMTP id xg17mr7997459vcb.5.1380815903024; Thu, 03 Oct 2013 08:58:23 -0700 (PDT) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id v6si1894667vet.0.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 08:58:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.171; Received: by mail-ve0-f171.google.com with SMTP id pa12so1885675veb.30 for ; Thu, 03 Oct 2013 08:58:22 -0700 (PDT) X-Gm-Message-State: ALoCoQl0QfmKbId/zHsPp8pTEBIGc5y4ajDPoIMhJyAP2M25FNG6tCk91IJs6PHoYH7iQtNhBiQK X-Received: by 10.52.230.35 with SMTP id sv3mr1743296vdc.27.1380815902916; Thu, 03 Oct 2013 08:58:22 -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 u4csp189241vcz; Thu, 3 Oct 2013 08:58:22 -0700 (PDT) X-Received: by 10.66.218.226 with SMTP id pj2mr10352564pac.62.1380815902040; Thu, 03 Oct 2013 08:58:22 -0700 (PDT) Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by mx.google.com with ESMTPS id yk3si6790146pac.302.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 08:58:21 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.52 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.52; Received: by mail-pa0-f52.google.com with SMTP id kl14so2805401pab.11 for ; Thu, 03 Oct 2013 08:58:21 -0700 (PDT) X-Received: by 10.67.22.67 with SMTP id hq3mr10397169pad.132.1380815901517; Thu, 03 Oct 2013 08:58:21 -0700 (PDT) Received: from localhost ([122.167.152.64]) by mx.google.com with ESMTPSA id ve9sm9066830pbc.19.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Oct 2013 08:58:20 -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 V2 12/16] cpuidle: use drv instead of cpuidle_driver in show_current_driver() Date: Thu, 3 Oct 2013 21:26:51 +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.128.171 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. Acked-by: Daniel Lezcano Signed-off-by: Viresh Kumar --- 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);