Re: [PATCH v2 2/2] thermal/drivers/cpu_cooling: Unregister with the policy

2019-06-24 Thread Rafael J. Wysocki
) On Mon, Jun 24, 2019 at 3:17 PM Daniel Lezcano wrote: > > Currently the function cpufreq_cooling_register() returns a cooling > device pointer which is used back as a pointer to call the function > cpufreq_cooling_unregister(). Even if it is correct, it would make > sense to not leak the

[PATCH v2 2/2] thermal/drivers/cpu_cooling: Unregister with the policy

2019-06-24 Thread Daniel Lezcano
Currently the function cpufreq_cooling_register() returns a cooling device pointer which is used back as a pointer to call the function cpufreq_cooling_unregister(). Even if it is correct, it would make sense to not leak the structure inside a cpufreq driver and keep the code thermal code