diff options
| author | Mark Brown <[email protected]> | 2015-10-12 18:09:27 +0100 | 
|---|---|---|
| committer | Mark Brown <[email protected]> | 2015-10-12 18:09:27 +0100 | 
| commit | 79828b4fa835f73cdaf4bffa48696abdcbea9d02 (patch) | |
| tree | 5e0fa7156acb75ba603022bc807df8f2fedb97a8 /include/linux/thermal.h | |
| parent | 721b51fcf91898299d96f4b72cb9434cda29dce6 (diff) | |
| parent | 8c1a9d6323abf0fb1e5dad96cf3f1c783505ea5a (diff) | |
Merge remote-tracking branch 'asoc/fix/rt5645' into asoc-fix-rt5645
Diffstat (limited to 'include/linux/thermal.h')
| -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 {  		     struct thermal_cooling_device *);  	int (*unbind) (struct thermal_zone_device *,  		       struct thermal_cooling_device *); -	int (*get_temp) (struct thermal_zone_device *, unsigned long *); +	int (*get_temp) (struct thermal_zone_device *, int *);  	int (*get_mode) (struct thermal_zone_device *,  			 enum thermal_device_mode *);  	int (*set_mode) (struct thermal_zone_device *,  		enum thermal_device_mode);  	int (*get_trip_type) (struct thermal_zone_device *, int,  		enum thermal_trip_type *); -	int (*get_trip_temp) (struct thermal_zone_device *, int, -			      unsigned long *); -	int (*set_trip_temp) (struct thermal_zone_device *, int, -			      unsigned long); -	int (*get_trip_hyst) (struct thermal_zone_device *, int, -			      unsigned long *); -	int (*set_trip_hyst) (struct thermal_zone_device *, int, -			      unsigned long); -	int (*get_crit_temp) (struct thermal_zone_device *, unsigned long *); -	int (*set_emul_temp) (struct thermal_zone_device *, unsigned long); +	int (*get_trip_temp) (struct thermal_zone_device *, int, int *); +	int (*set_trip_temp) (struct thermal_zone_device *, int, int); +	int (*get_trip_hyst) (struct thermal_zone_device *, int, int *); +	int (*set_trip_hyst) (struct thermal_zone_device *, int, int); +	int (*get_crit_temp) (struct thermal_zone_device *, int *); +	int (*set_emul_temp) (struct thermal_zone_device *, int);  	int (*get_trend) (struct thermal_zone_device *, int,  			  enum thermal_trend *);  	int (*notify) (struct thermal_zone_device *, int, @@ -332,9 +328,9 @@ struct thermal_genl_event {   *		   temperature.   */  struct thermal_zone_of_device_ops { -	int (*get_temp)(void *, long *); +	int (*get_temp)(void *, int *);  	int (*get_trend)(void *, long *); -	int (*set_emul_temp)(void *, unsigned long); +	int (*set_emul_temp)(void *, int);  };  /** @@ -406,7 +402,7 @@ thermal_of_cooling_device_register(struct device_node *np, char *, void *,  				   const struct thermal_cooling_device_ops *);  void thermal_cooling_device_unregister(struct thermal_cooling_device *);  struct thermal_zone_device *thermal_zone_get_zone_by_name(const char *name); -int thermal_zone_get_temp(struct thermal_zone_device *tz, unsigned long *temp); +int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp);  int get_tz_trend(struct thermal_zone_device *, int);  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(  		const char *name)  { return ERR_PTR(-ENODEV); }  static inline int thermal_zone_get_temp( -		struct thermal_zone_device *tz, unsigned long *temp) +		struct thermal_zone_device *tz, int *temp)  { return -ENODEV; }  static inline int get_tz_trend(struct thermal_zone_device *tz, int trip)  { return -ENODEV; }  |