thermal: devfreq_cooling: use a thermal_cooling_device for register and unregister
authorJavi Merino <javi.merino@arm.com>
Mon, 2 Nov 2015 19:03:03 +0000 (19:03 +0000)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Thu, 7 Jul 2016 05:32:11 +0000 (14:32 +0900)
commit590733d25f0fbf91bd419fa60d36191e58f3cad8
treea6532d8ca22814ad5f4b1228fd3fb372e4a5d86d
parent48e3a63cf6b524102525212df681c1d83a1575a3
thermal: devfreq_cooling: use a thermal_cooling_device for register and unregister

Be consistent with what other cooling devices do and return a struct
thermal_cooling_device * on register.  Also, for the unregister, accept
a struct thermal_cooling_device * as parameter.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
[jy0922.shim: apply mainline patch]
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
drivers/thermal/devfreq_cooling.c
include/linux/devfreq_cooling.h