diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-01-02 02:04:26 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-01-23 16:49:33 -0500 |
commit | 42f91fa1166f1d6c9fba37f167dd3c3f846be00a (patch) | |
tree | af983b4522dc8564cfb35654626d4aa332ee3ed9 /drivers/cpufreq/cpufreq.c | |
parent | db5f299574267c50067b967f898633d4dec7ecc4 (diff) |
cpufreq: s/__find_governor/find_governor
Remove unnecessary from find_governor's name.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 626ef841479a..faffdaaba343 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c | |||
@@ -433,7 +433,7 @@ static ssize_t store_boost(struct kobject *kobj, struct attribute *attr, | |||
433 | } | 433 | } |
434 | define_one_global_rw(boost); | 434 | define_one_global_rw(boost); |
435 | 435 | ||
436 | static struct cpufreq_governor *__find_governor(const char *str_governor) | 436 | static struct cpufreq_governor *find_governor(const char *str_governor) |
437 | { | 437 | { |
438 | struct cpufreq_governor *t; | 438 | struct cpufreq_governor *t; |
439 | 439 | ||
@@ -469,7 +469,7 @@ static int cpufreq_parse_governor(char *str_governor, unsigned int *policy, | |||
469 | 469 | ||
470 | mutex_lock(&cpufreq_governor_mutex); | 470 | mutex_lock(&cpufreq_governor_mutex); |
471 | 471 | ||
472 | t = __find_governor(str_governor); | 472 | t = find_governor(str_governor); |
473 | 473 | ||
474 | if (t == NULL) { | 474 | if (t == NULL) { |
475 | int ret; | 475 | int ret; |
@@ -479,7 +479,7 @@ static int cpufreq_parse_governor(char *str_governor, unsigned int *policy, | |||
479 | mutex_lock(&cpufreq_governor_mutex); | 479 | mutex_lock(&cpufreq_governor_mutex); |
480 | 480 | ||
481 | if (ret == 0) | 481 | if (ret == 0) |
482 | t = __find_governor(str_governor); | 482 | t = find_governor(str_governor); |
483 | } | 483 | } |
484 | 484 | ||
485 | if (t != NULL) { | 485 | if (t != NULL) { |
@@ -936,7 +936,7 @@ static void cpufreq_init_policy(struct cpufreq_policy *policy) | |||
936 | memcpy(&new_policy, policy, sizeof(*policy)); | 936 | memcpy(&new_policy, policy, sizeof(*policy)); |
937 | 937 | ||
938 | /* Update governor of new_policy to the governor used before hotplug */ | 938 | /* Update governor of new_policy to the governor used before hotplug */ |
939 | gov = __find_governor(per_cpu(cpufreq_cpu_governor, policy->cpu)); | 939 | gov = find_governor(per_cpu(cpufreq_cpu_governor, policy->cpu)); |
940 | if (gov) | 940 | if (gov) |
941 | pr_debug("Restoring governor %s for cpu %d\n", | 941 | pr_debug("Restoring governor %s for cpu %d\n", |
942 | policy->governor->name, policy->cpu); | 942 | policy->governor->name, policy->cpu); |
@@ -2102,7 +2102,7 @@ int cpufreq_register_governor(struct cpufreq_governor *governor) | |||
2102 | 2102 | ||
2103 | governor->initialized = 0; | 2103 | governor->initialized = 0; |
2104 | err = -EBUSY; | 2104 | err = -EBUSY; |
2105 | if (__find_governor(governor->name) == NULL) { | 2105 | if (!find_governor(governor->name)) { |
2106 | err = 0; | 2106 | err = 0; |
2107 | list_add(&governor->governor_list, &cpufreq_governor_list); | 2107 | list_add(&governor->governor_list, &cpufreq_governor_list); |
2108 | } | 2108 | } |