aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal/thermal_sys.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/thermal/thermal_sys.c')
-rw-r--r--drivers/thermal/thermal_sys.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c
index 13c72c629329..bde3477c1c6b 100644
--- a/drivers/thermal/thermal_sys.c
+++ b/drivers/thermal/thermal_sys.c
@@ -823,11 +823,8 @@ static struct class thermal_class = {
823 * @devdata: device private data. 823 * @devdata: device private data.
824 * @ops: standard thermal cooling devices callbacks. 824 * @ops: standard thermal cooling devices callbacks.
825 */ 825 */
826struct thermal_cooling_device *thermal_cooling_device_register(char *type, 826struct thermal_cooling_device *thermal_cooling_device_register(
827 void *devdata, 827 char *type, void *devdata, const struct thermal_cooling_device_ops *ops)
828 struct
829 thermal_cooling_device_ops
830 *ops)
831{ 828{
832 struct thermal_cooling_device *cdev; 829 struct thermal_cooling_device *cdev;
833 struct thermal_zone_device *pos; 830 struct thermal_zone_device *pos;
@@ -1048,13 +1045,9 @@ EXPORT_SYMBOL(thermal_zone_device_update);
1048 * section 11.1.5.1 of the ACPI specification 3.0. 1045 * section 11.1.5.1 of the ACPI specification 3.0.
1049 */ 1046 */
1050struct thermal_zone_device *thermal_zone_device_register(char *type, 1047struct thermal_zone_device *thermal_zone_device_register(char *type,
1051 int trips, 1048 int trips, void *devdata,
1052 void *devdata, struct 1049 const struct thermal_zone_device_ops *ops,
1053 thermal_zone_device_ops 1050 int tc1, int tc2, int passive_delay, int polling_delay)
1054 *ops, int tc1, int
1055 tc2,
1056 int passive_delay,
1057 int polling_delay)
1058{ 1051{
1059 struct thermal_zone_device *tz; 1052 struct thermal_zone_device *tz;
1060 struct thermal_cooling_device *pos; 1053 struct thermal_cooling_device *pos;