]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cpufreq: rename index as driver_data in cpufreq_frequency_table
authorViresh Kumar <viresh.kumar@linaro.org>
Sat, 30 Mar 2013 10:55:15 +0000 (16:25 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 4 Jun 2013 12:25:59 +0000 (14:25 +0200)
commit5070158804b5339c71809f5e673cea1cfacd804d
tree42256e81e326af4e568a179787e66d434a0b1ffc
parent2361be23666232dbb4851a527f466c4cbf5340fc
cpufreq: rename index as driver_data in cpufreq_frequency_table

The "index" field of struct cpufreq_frequency_table was never an
index and isn't used at all by the cpufreq core.  It only is useful
for cpufreq drivers for their internal purposes.

Many people nowadays blindly set it in ascending order with the
assumption that the core will use it, which is a mistake.

Rename it to "driver_data" as that's what its purpose is. All of its
users are updated accordingly.

[rjw: Changelog]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
37 files changed:
Documentation/cpu-freq/cpu-drivers.txt
arch/arm/mach-davinci/da850.c
arch/arm/mach-s3c24xx/cpufreq-utils.c
arch/arm/mach-s3c24xx/cpufreq.c
arch/arm/mach-s3c24xx/pll-s3c2410.c
arch/arm/mach-s3c24xx/pll-s3c2440-12000000.c
arch/arm/mach-s3c24xx/pll-s3c2440-16934400.c
arch/arm/mach-shmobile/clock-sh7372.c
arch/arm/plat-samsung/include/plat/cpu-freq-core.h
arch/mips/loongson/lemote-2f/clock.c
arch/powerpc/platforms/pasemi/cpufreq.c
drivers/base/power/opp.c
drivers/cpufreq/acpi-cpufreq.c
drivers/cpufreq/blackfin-cpufreq.c
drivers/cpufreq/e_powersaver.c
drivers/cpufreq/freq_table.c
drivers/cpufreq/ia64-acpi-cpufreq.c
drivers/cpufreq/kirkwood-cpufreq.c
drivers/cpufreq/longhaul.c
drivers/cpufreq/loongson2_cpufreq.c
drivers/cpufreq/p4-clockmod.c
drivers/cpufreq/powernow-k6.c
drivers/cpufreq/powernow-k7.c
drivers/cpufreq/powernow-k8.c
drivers/cpufreq/ppc_cbe_cpufreq.c
drivers/cpufreq/pxa2xx-cpufreq.c
drivers/cpufreq/pxa3xx-cpufreq.c
drivers/cpufreq/s3c2416-cpufreq.c
drivers/cpufreq/s3c64xx-cpufreq.c
drivers/cpufreq/sc520_freq.c
drivers/cpufreq/sparc-us2e-cpufreq.c
drivers/cpufreq/sparc-us3-cpufreq.c
drivers/cpufreq/spear-cpufreq.c
drivers/cpufreq/speedstep-centrino.c
drivers/mfd/db8500-prcmu.c
drivers/sh/clk/core.c
include/linux/cpufreq.h