diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/thermal.h | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 037e9df2f610..17292fee8686 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h | |||
| @@ -92,23 +92,19 @@ struct thermal_zone_device_ops { | |||
| 92 | struct thermal_cooling_device *); | 92 | struct thermal_cooling_device *); |
| 93 | int (*unbind) (struct thermal_zone_device *, | 93 | int (*unbind) (struct thermal_zone_device *, |
| 94 | struct thermal_cooling_device *); | 94 | struct thermal_cooling_device *); |
| 95 | int (*get_temp) (struct thermal_zone_device *, unsigned long *); | 95 | int (*get_temp) (struct thermal_zone_device *, int *); |
| 96 | int (*get_mode) (struct thermal_zone_device *, | 96 | int (*get_mode) (struct thermal_zone_device *, |
| 97 | enum thermal_device_mode *); | 97 | enum thermal_device_mode *); |
| 98 | int (*set_mode) (struct thermal_zone_device *, | 98 | int (*set_mode) (struct thermal_zone_device *, |
| 99 | enum thermal_device_mode); | 99 | enum thermal_device_mode); |
| 100 | int (*get_trip_type) (struct thermal_zone_device *, int, | 100 | int (*get_trip_type) (struct thermal_zone_device *, int, |
| 101 | enum thermal_trip_type *); | 101 | enum thermal_trip_type *); |
| 102 | int (*get_trip_temp) (struct thermal_zone_device *, int, | 102 | int (*get_trip_temp) (struct thermal_zone_device *, int, int *); |
| 103 | unsigned long *); | 103 | int (*set_trip_temp) (struct thermal_zone_device *, int, int); |
| 104 | int (*set_trip_temp) (struct thermal_zone_device *, int, | 104 | int (*get_trip_hyst) (struct thermal_zone_device *, int, int *); |
| 105 | unsigned long); | 105 | int (*set_trip_hyst) (struct thermal_zone_device *, int, int); |
| 106 | int (*get_trip_hyst) (struct thermal_zone_device *, int, | 106 | int (*get_crit_temp) (struct thermal_zone_device *, int *); |
| 107 | unsigned long *); | 107 | int (*set_emul_temp) (struct thermal_zone_device *, int); |
| 108 | int (*set_trip_hyst) (struct thermal_zone_device *, int, | ||
| 109 | unsigned long); | ||
| 110 | int (*get_crit_temp) (struct thermal_zone_device *, unsigned long *); | ||
| 111 | int (*set_emul_temp) (struct thermal_zone_device *, unsigned long); | ||
| 112 | int (*get_trend) (struct thermal_zone_device *, int, | 108 | int (*get_trend) (struct thermal_zone_device *, int, |
| 113 | enum thermal_trend *); | 109 | enum thermal_trend *); |
| 114 | int (*notify) (struct thermal_zone_device *, int, | 110 | int (*notify) (struct thermal_zone_device *, int, |
| @@ -332,9 +328,9 @@ struct thermal_genl_event { | |||
| 332 | * temperature. | 328 | * temperature. |
| 333 | */ | 329 | */ |
| 334 | struct thermal_zone_of_device_ops { | 330 | struct thermal_zone_of_device_ops { |
| 335 | int (*get_temp)(void *, long *); | 331 | int (*get_temp)(void *, int *); |
| 336 | int (*get_trend)(void *, long *); | 332 | int (*get_trend)(void *, long *); |
| 337 | int (*set_emul_temp)(void *, unsigned long); | 333 | int (*set_emul_temp)(void *, int); |
| 338 | }; | 334 | }; |
| 339 | 335 | ||
| 340 | /** | 336 | /** |
| @@ -406,7 +402,7 @@ thermal_of_cooling_device_register(struct device_node *np, char *, void *, | |||
| 406 | const struct thermal_cooling_device_ops *); | 402 | const struct thermal_cooling_device_ops *); |
| 407 | void thermal_cooling_device_unregister(struct thermal_cooling_device *); | 403 | void thermal_cooling_device_unregister(struct thermal_cooling_device *); |
| 408 | struct thermal_zone_device *thermal_zone_get_zone_by_name(const char *name); | 404 | struct thermal_zone_device *thermal_zone_get_zone_by_name(const char *name); |
| 409 | int thermal_zone_get_temp(struct thermal_zone_device *tz, unsigned long *temp); | 405 | int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp); |
| 410 | 406 | ||
| 411 | int get_tz_trend(struct thermal_zone_device *, int); | 407 | int get_tz_trend(struct thermal_zone_device *, int); |
| 412 | struct thermal_instance *get_thermal_instance(struct thermal_zone_device *, | 408 | struct thermal_instance *get_thermal_instance(struct thermal_zone_device *, |
| @@ -457,7 +453,7 @@ static inline struct thermal_zone_device *thermal_zone_get_zone_by_name( | |||
| 457 | const char *name) | 453 | const char *name) |
| 458 | { return ERR_PTR(-ENODEV); } | 454 | { return ERR_PTR(-ENODEV); } |
| 459 | static inline int thermal_zone_get_temp( | 455 | static inline int thermal_zone_get_temp( |
| 460 | struct thermal_zone_device *tz, unsigned long *temp) | 456 | struct thermal_zone_device *tz, int *temp) |
| 461 | { return -ENODEV; } | 457 | { return -ENODEV; } |
| 462 | static inline int get_tz_trend(struct thermal_zone_device *tz, int trip) | 458 | static inline int get_tz_trend(struct thermal_zone_device *tz, int trip) |
| 463 | { return -ENODEV; } | 459 | { return -ENODEV; } |
