]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/thermal/cpu_cooling.c
[media] msi3101: correct ADC sampling rate calc a little bit
[karo-tx-linux.git] / drivers / thermal / cpu_cooling.c
index c94bf2e5de629419c8e00e29f2cf23ac4507c365..82e15dbb3ac7a1b3b9063a1577c61f3b1025fb27 100644 (file)
@@ -167,7 +167,7 @@ static int get_property(unsigned int cpu, unsigned long input,
                        continue;
 
                /* get the frequency order */
-               if (freq != CPUFREQ_ENTRY_INVALID && descend != -1)
+               if (freq != CPUFREQ_ENTRY_INVALID && descend == -1)
                        descend = !!(freq > table[i].frequency);
 
                freq = table[i].frequency;