This patch fixes the build warning according to new devfreq_cooling device
driver and make the frequency table as descending order.
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
[jy0922.shim: apply to midgard r12p0_04rel0]
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
return -ENOMEM;
rcu_read_lock();
- for (i = 0; i < count; i++, freq++) {
- opp = dev_pm_opp_find_freq_ceil(kbdev->dev, &freq);
+ freq = ULONG_MAX;
+ for (i = 0; i < count; i++, freq--) {
+ opp = dev_pm_opp_find_freq_floor(kbdev->dev, &freq);
if (IS_ERR(opp))
break;
unsigned long current_freq;
unsigned long current_voltage;
#ifdef CONFIG_DEVFREQ_THERMAL
- struct devfreq_cooling_device *devfreq_cooling;
+ struct thermal_cooling_device *devfreq_cooling;
#endif
#endif