[PATCH V2 1/4] cpu_cooling: Make of_cpufreq_power_cooling_register() parse DT

2017-12-04 Thread Viresh Kumar
All the callers of of_cpufreq_power_cooling_register() have almost identical code and it makes more sense to move that code into the helper as its all about reading DT properties. This got rid of lot of redundant code. Acked-by: Eduardo Valentin Signed-off-by: Viresh Kumar

[PATCH V2 1/4] cpu_cooling: Make of_cpufreq_power_cooling_register() parse DT

2017-12-04 Thread Viresh Kumar
All the callers of of_cpufreq_power_cooling_register() have almost identical code and it makes more sense to move that code into the helper as its all about reading DT properties. This got rid of lot of redundant code. Acked-by: Eduardo Valentin Signed-off-by: Viresh Kumar ---