Skip to contentSkip to conversation

cpufreq: cpufreq: Fix coding style issues

PATCH RESEND In review Muhammad Falak R Wani 2 participants 2 messages Aug 23, 2015 – Aug 24, 2015 CPU frequency scaling framework

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 cpufreq: cpufreq: Fix coding style issues

This patch introduces a blank line after declarations, which fix the checkpatch.pl warnings at 3 places.

---
 drivers/cpufreq/cpufreq.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/cpufreq/cpufreq.c +3 -0
index 8ae655c..5aea659 100644
@@ -718,6 +718,7 @@ static ssize_t show_bios_limit(struct cpufreq_policy *policy, char *buf)
 {
 	unsigned int limit;
 	int ret;
+
 	if (cpufreq_driver->bios_limit) {
 		ret = cpufreq_driver->bios_limit(policy->cpu, &limit);
 		if (!ret)
@@ -815,6 +816,7 @@ unlock:
 static void cpufreq_sysfs_release(struct kobject *kobj)
 {
 	struct cpufreq_policy *policy = to_policy(kobj);
+
 	pr_debug("last reference is dropped\n");
 	complete(&policy->kobj_unregister);
 }
@@ -2129,6 +2131,7 @@ EXPORT_SYMBOL_GPL(cpufreq_unregister_governor);
 int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu)
 {
 	struct cpufreq_policy *cpu_policy;
+
 	if (!policy)
 		return -EINVAL;
 
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 29 lines · Muhammad Falak R Wani

This patch introduces a blank line after declarations, which fix the checkpatch.pl warnings at 3 places.

---
 drivers/cpufreq/cpufreq.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/cpufreq/cpufreq.c +2 -0
index 8ae655c..5aea659 100644
@@ -718,6 +718,7 @@ static ssize_t show_bios_limit(struct cpufreq_policy *policy, char *buf)
 {
 	unsigned int limit;
 	int ret;
+
 	if (cpufreq_driver->bios_limit) {
 		ret = cpufreq_driver->bios_limit(policy->cpu, &limit);
 		if (!ret)
@@ -815,6 +816,7 @@ unlock:
 static void cpufreq_sysfs_release(struct kobject *kobj)
 {
 	struct cpufreq_policy *policy = to_policy(kobj);
+
 	pr_debug("last reference is dropped\n");
 	complete(&policy->kobj_unregister);
 }

drivers/cpufreq/cpufreq.c EXPORT_SYMBOL_GPL(cpufreq_unregister_governor); · line 2136

Quoted 6 lines
drivers/cpufreq/cpufreq.c +1 -0
@@ -2129,6 +2131,7 @@ EXPORT_SYMBOL_GPL(cpufreq_unregister_governor);
 int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu)
 {
 	struct cpufreq_policy *cpu_policy;
+
 	if (!policy)
 		return -EINVAL;

We don't really need a patch for this, unless Rafael wants to apply this one :)

Signature · 1 line
viresh