From patchwork Fri Jan 2 07:04:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 42677 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D786126CD1 for ; Fri, 2 Jan 2015 07:05:19 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id d49sf10398521eek.4 for ; Thu, 01 Jan 2015 23:05:19 -0800 (PST) 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 :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=bQxwx6sGmKRpyb/hUG3RBguELeg+vqQ8R4q8lRnacJg=; b=kVJ+rVpTuJtRmcLdab59w+NxseIafOHlTOPn2qKW3KxWn+xJI8AXXSiqET5TvCt7wX Oudi9y6UzPQfGF/mPfn5U68E2m4U4/FQQl4mEwh5FArF+nd4eNs81Yj4NyQ2X3Wqd4b0 DFU1DyMpOl/s3Phn+ZFa2xP8qflkK1Zn1hSvfHZ4ai43hG9dL/M2BfmNqpfbeDi4lAT8 xOFyUYJLEPWN6WUybPEC6+eQZJHfZZKVsb9C2U+J9wS/6uAsM9w4VPGcHBYW6/7tMDF8 UTiFFktIBjQBz5+sd7akOinvxyOe1BDX9BLYncUX81swe6hQ+HxS3Dusm+XjzOmyTbdO uerg== X-Gm-Message-State: ALoCoQn0abRwCN8evQ4vm7msPCykW3kqvsV31+A/ff4aRkuvNaQ44s27iltb59sp0WhqMCcSDnej X-Received: by 10.194.178.234 with SMTP id db10mr3742885wjc.2.1420182319101; Thu, 01 Jan 2015 23:05:19 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.39 with SMTP id b7ls968319lae.93.gmail; Thu, 01 Jan 2015 23:05:18 -0800 (PST) X-Received: by 10.152.115.172 with SMTP id jp12mr74609339lab.33.1420182318746; Thu, 01 Jan 2015 23:05:18 -0800 (PST) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id g2si30903777lbs.85.2015.01.01.23.05.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 Jan 2015 23:05:18 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by mail-lb0-f180.google.com with SMTP id l4so14562428lbv.25 for ; Thu, 01 Jan 2015 23:05:18 -0800 (PST) X-Received: by 10.112.235.137 with SMTP id um9mr74908532lbc.41.1420182318650; Thu, 01 Jan 2015 23:05:18 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.9.200 with SMTP id c8csp126108lbb; Thu, 1 Jan 2015 23:05:17 -0800 (PST) X-Received: by 10.68.68.197 with SMTP id y5mr121167800pbt.82.1420182316734; Thu, 01 Jan 2015 23:05:16 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id la3si26847561pab.123.2015.01.01.23.05.15; Thu, 01 Jan 2015 23:05:16 -0800 (PST) Received-SPF: none (google.com: linux-pm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750736AbbABHFP (ORCPT + 12 others); Fri, 2 Jan 2015 02:05:15 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:34432 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750711AbbABHFO (ORCPT ); Fri, 2 Jan 2015 02:05:14 -0500 Received: by mail-pa0-f53.google.com with SMTP id kq14so23337652pab.26 for ; Thu, 01 Jan 2015 23:05:13 -0800 (PST) X-Received: by 10.70.45.17 with SMTP id i17mr121262349pdm.13.1420182313591; Thu, 01 Jan 2015 23:05:13 -0800 (PST) Received: from localhost ([122.167.116.151]) by mx.google.com with ESMTPSA id qq6sm45603311pbb.20.2015.01.01.23.05.12 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 01 Jan 2015 23:05:12 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, prarit@redhat.com, skannan@codeaurora.org, Viresh Kumar Subject: [PATCH 05/17] cpufreq: s/__find_governor/find_governor Date: Fri, 2 Jan 2015 12:34:26 +0530 Message-Id: <69fc0679af15f82572dfb74c1aed67021dfc36fe.1420181916.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.2.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Remove unnecessary __ present in find_governor's name. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 4309b075df06..c9ba1d64015c 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -432,7 +432,7 @@ static ssize_t store_boost(struct kobject *kobj, struct attribute *attr, } define_one_global_rw(boost); -static struct cpufreq_governor *__find_governor(const char *str_governor) +static struct cpufreq_governor *find_governor(const char *str_governor) { struct cpufreq_governor *t; @@ -468,7 +468,7 @@ static int cpufreq_parse_governor(char *str_governor, unsigned int *policy, mutex_lock(&cpufreq_governor_mutex); - t = __find_governor(str_governor); + t = find_governor(str_governor); if (t == NULL) { int ret; @@ -478,7 +478,7 @@ static int cpufreq_parse_governor(char *str_governor, unsigned int *policy, mutex_lock(&cpufreq_governor_mutex); if (ret == 0) - t = __find_governor(str_governor); + t = find_governor(str_governor); } if (t != NULL) { @@ -935,7 +935,7 @@ static void cpufreq_init_policy(struct cpufreq_policy *policy) memcpy(&new_policy, policy, sizeof(*policy)); /* Update governor of new_policy to the governor used before hotplug */ - gov = __find_governor(per_cpu(cpufreq_cpu_governor, policy->cpu)); + gov = find_governor(per_cpu(cpufreq_cpu_governor, policy->cpu)); if (gov) pr_debug("Restoring governor %s for cpu %d\n", policy->governor->name, policy->cpu); @@ -2089,7 +2089,7 @@ int cpufreq_register_governor(struct cpufreq_governor *governor) governor->initialized = 0; err = -EBUSY; - if (__find_governor(governor->name) == NULL) { + if (!find_governor(governor->name)) { err = 0; list_add(&governor->governor_list, &cpufreq_governor_list); }