cppc_cpufreq: clean up cpu, cpu_num and cpunum variable use
authorIonela Voinescu <ionela.voinescu@arm.com>
Thu, 5 Nov 2020 12:55:18 +0000 (12:55 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 17 Nov 2020 14:57:09 +0000 (15:57 +0100)
commit48ad8dc94032ab43f0655190d9687f6d65b98f7f
tree92a568d785b7e3abdaafb3db74537e63bf96bc86
parent63087265c288dc2d0f198ffba964c9fb383a61ed
cppc_cpufreq: clean up cpu, cpu_num and cpunum variable use

In order to maintain the typical naming convention in the cpufreq
framework:

 - replace the use of "cpu" variable name for cppc_cpudata pointers
   with "cpu_data"
 - replace variable names "cpu_num" and "cpunum" with "cpu"
 - make cpu variables unsigned int

Where pertinent, also move the initialisation of cpu_data variable to
its declaration and make consistent use of the local "cpu" variable.

Signed-off-by: Ionela Voinescu <ionela.voinescu@arm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cppc_cpufreq.c