Re: [PATCH v1 3/7] cpu_cooling: Add generic driver ready callback

2019-01-09 Thread Viresh Kumar
On 10-01-19, 05:30, Amit Kucheria wrote: > All cpufreq drivers do similar things to register as a cooling device. > Provide a generic call back so we can get rid of duplicated code in the > drivers. > > Signed-off-by: Amit Kucheria > Suggested-by: Stephen Boyd > --- > drivers/thermal/cpu_coolin

[PATCH v1 3/7] cpu_cooling: Add generic driver ready callback

2019-01-09 Thread Amit Kucheria
All cpufreq drivers do similar things to register as a cooling device. Provide a generic call back so we can get rid of duplicated code in the drivers. Signed-off-by: Amit Kucheria Suggested-by: Stephen Boyd --- drivers/thermal/cpu_cooling.c | 18 ++ include/linux/cpu_cooling.h