thermal: cpu_cooling: use cpufreq_dev_list instead of cpufreq_dev_count
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Dec 2014 04:12:04 +0000 (09:42 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Mon, 8 Dec 2014 18:09:15 +0000 (14:09 -0400)
commit2479bb6443d6a793f896219a34bfab0cc410f0b4
treef878dff22f01e913d5fffcd24c0ad1813bf039bb
parent97afa4aafb821eca197f678b6552488c46f8c48e
thermal: cpu_cooling: use cpufreq_dev_list instead of cpufreq_dev_count

As we already have a list of cpufreq_cooling_devices now, lets use it instead of
a local counter.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/cpu_cooling.c