Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18c6faa9 authored by Paolo Ciarrocchi's avatar Paolo Ciarrocchi Committed by Dave Jones
Browse files

[CPUFREQ] Coding style fixes to arch/x86/kernel/cpu/cpufreq/elanfreq.c



Before:
total: 15 errors, 10 warnings, 308 lines checked

After:
total: 0 errors, 4 warnings, 308 lines checked

paolo@paolo-desktop:~/linux.trees.git$ md5sum /tmp/elafreq.o.*
add1d36c2f077c5aab7682e8642a9f34  /tmp/elafreq.o.after
add1d36c2f077c5aab7682e8642a9f34  /tmp/elafreq.o.before

paolo@paolo-desktop:~/linux.trees.git$ size /tmp/elafreq.o.*
   text    data     bss     dec     hex filename
    934     270       4    1208     4b8 /tmp/elafreq.o.after
    934     270       4    1208     4b8 /tmp/elafreq.o.before

Signed-off-by: default avatarPaolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 69849375
Loading
Loading
Loading
Loading
+21 −21
Original line number Diff line number Diff line
@@ -25,8 +25,8 @@
#include <linux/cpufreq.h>

#include <asm/msr.h>
#include <asm/timex.h>
#include <asm/io.h>
#include <linux/timex.h>
#include <linux/io.h>

#define REG_CSCIR 0x22		/* Chip Setup and Control Index Register    */
#define REG_CSCDR 0x23		/* Chip Setup and Control Data  Register    */
@@ -101,7 +101,7 @@ static unsigned int elanfreq_get_cpu_frequency(unsigned int cpu)
	if ((clockspeed_reg & 0xE0) == 0xA0)
		return 33000;

	return ((1<<((clockspeed_reg & 0xE0) >> 5)) * 1000);
	return (1<<((clockspeed_reg & 0xE0) >> 5)) * 1000;
}


@@ -224,7 +224,7 @@ static int elanfreq_cpu_init(struct cpufreq_policy *policy)

	result = cpufreq_frequency_table_cpuinfo(policy, elanfreq_table);
	if (result)
		return (result);
		return result;

	cpufreq_frequency_table_get_attr(elanfreq_table, policy->cpu);
	return 0;