drivers: thermal: cpu_cooling: fix checkpatch warning
- WARNING: Avoid CamelCase: <maskPtr> Signed-off-by: Laurent Navet <laurent.navet@gmail.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
This commit is contained in:
parent
3912a677f6
commit
bde0066309
1 changed files with 5 additions and 5 deletions
|
@ -168,8 +168,8 @@ static int cpufreq_apply_cooling(struct cpufreq_cooling_device *cpufreq_device,
|
||||||
unsigned long cooling_state)
|
unsigned long cooling_state)
|
||||||
{
|
{
|
||||||
unsigned int cpuid, clip_freq;
|
unsigned int cpuid, clip_freq;
|
||||||
struct cpumask *maskPtr = &cpufreq_device->allowed_cpus;
|
struct cpumask *mask = &cpufreq_device->allowed_cpus;
|
||||||
unsigned int cpu = cpumask_any(maskPtr);
|
unsigned int cpu = cpumask_any(mask);
|
||||||
|
|
||||||
|
|
||||||
/* Check if the old cooling action is same as new cooling action */
|
/* Check if the old cooling action is same as new cooling action */
|
||||||
|
@ -184,7 +184,7 @@ static int cpufreq_apply_cooling(struct cpufreq_cooling_device *cpufreq_device,
|
||||||
cpufreq_device->cpufreq_val = clip_freq;
|
cpufreq_device->cpufreq_val = clip_freq;
|
||||||
notify_device = cpufreq_device;
|
notify_device = cpufreq_device;
|
||||||
|
|
||||||
for_each_cpu(cpuid, maskPtr) {
|
for_each_cpu(cpuid, mask) {
|
||||||
if (is_cpufreq_valid(cpuid))
|
if (is_cpufreq_valid(cpuid))
|
||||||
cpufreq_update_policy(cpuid);
|
cpufreq_update_policy(cpuid);
|
||||||
}
|
}
|
||||||
|
@ -235,13 +235,13 @@ static int cpufreq_get_max_state(struct thermal_cooling_device *cdev,
|
||||||
unsigned long *state)
|
unsigned long *state)
|
||||||
{
|
{
|
||||||
struct cpufreq_cooling_device *cpufreq_device = cdev->devdata;
|
struct cpufreq_cooling_device *cpufreq_device = cdev->devdata;
|
||||||
struct cpumask *maskPtr = &cpufreq_device->allowed_cpus;
|
struct cpumask *mask = &cpufreq_device->allowed_cpus;
|
||||||
unsigned int cpu;
|
unsigned int cpu;
|
||||||
struct cpufreq_frequency_table *table;
|
struct cpufreq_frequency_table *table;
|
||||||
unsigned long count = 0;
|
unsigned long count = 0;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
cpu = cpumask_any(maskPtr);
|
cpu = cpumask_any(mask);
|
||||||
table = cpufreq_frequency_get_table(cpu);
|
table = cpufreq_frequency_get_table(cpu);
|
||||||
if (!table) {
|
if (!table) {
|
||||||
*state = 0;
|
*state = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue