thermal: cpu_cooling: Use cpufreq_for_each_valid_entry macro for iteration
authorStratos Karafotis <stratosk@semaphore.gr>
Fri, 25 Apr 2014 20:16:39 +0000 (23:16 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 29 Apr 2014 22:06:49 +0000 (00:06 +0200)
commit3c84ef3af7c5778e25145a1fef29a816730a830c
treee34122e0e7738c331ed69de13a4df0f51303f3aa
parent4966ee4037fedd80871659333172481073ec2fac
thermal: cpu_cooling: Use cpufreq_for_each_valid_entry macro for iteration

The cpufreq core now supports the cpufreq_for_each_valid_entry macro
helper for iteration over the cpufreq_frequency_table, so use it.

Also remove the redundant !! operator.

It should have no functional changes.

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/cpu_cooling.c