diff options
| author | Len Brown <len.brown@intel.com> | 2011-01-12 05:14:15 -0500 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2011-01-12 05:14:15 -0500 |
| commit | 156d821270e131dee7d89fc4aa385f0f9b1900ea (patch) | |
| tree | 2d3a4bfea184033c1eae48846ecd357c82021e85 | |
| parent | 3e098984073795bff5e5e3edbc1f5b0514c47c92 (diff) | |
| parent | 5b275ce27077d6463ca28c9671dce7c2c1f622e2 (diff) | |
Merge branch 'misc' into release
| -rw-r--r-- | drivers/thermal/thermal_sys.c | 17 | ||||
| -rw-r--r-- | include/linux/thermal.h | 15 |
2 files changed, 10 insertions, 22 deletions
diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c index 760e045c93c8..7d0e63c79280 100644 --- a/drivers/thermal/thermal_sys.c +++ b/drivers/thermal/thermal_sys.c | |||
| @@ -841,11 +841,8 @@ static struct class thermal_class = { | |||
| 841 | * @devdata: device private data. | 841 | * @devdata: device private data. |
| 842 | * @ops: standard thermal cooling devices callbacks. | 842 | * @ops: standard thermal cooling devices callbacks. |
| 843 | */ | 843 | */ |
| 844 | struct thermal_cooling_device *thermal_cooling_device_register(char *type, | 844 | struct thermal_cooling_device *thermal_cooling_device_register( |
| 845 | void *devdata, | 845 | char *type, void *devdata, const struct thermal_cooling_device_ops *ops) |
| 846 | struct | ||
| 847 | thermal_cooling_device_ops | ||
| 848 | *ops) | ||
| 849 | { | 846 | { |
| 850 | struct thermal_cooling_device *cdev; | 847 | struct thermal_cooling_device *cdev; |
| 851 | struct thermal_zone_device *pos; | 848 | struct thermal_zone_device *pos; |
| @@ -1066,13 +1063,9 @@ EXPORT_SYMBOL(thermal_zone_device_update); | |||
| 1066 | * section 11.1.5.1 of the ACPI specification 3.0. | 1063 | * section 11.1.5.1 of the ACPI specification 3.0. |
| 1067 | */ | 1064 | */ |
| 1068 | struct thermal_zone_device *thermal_zone_device_register(char *type, | 1065 | struct thermal_zone_device *thermal_zone_device_register(char *type, |
| 1069 | int trips, | 1066 | int trips, void *devdata, |
| 1070 | void *devdata, struct | 1067 | const struct thermal_zone_device_ops *ops, |
| 1071 | thermal_zone_device_ops | 1068 | int tc1, int tc2, int passive_delay, int polling_delay) |
| 1072 | *ops, int tc1, int | ||
| 1073 | tc2, | ||
| 1074 | int passive_delay, | ||
| 1075 | int polling_delay) | ||
| 1076 | { | 1069 | { |
| 1077 | struct thermal_zone_device *tz; | 1070 | struct thermal_zone_device *tz; |
| 1078 | struct thermal_cooling_device *pos; | 1071 | struct thermal_cooling_device *pos; |
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 784644961279..8651556dbd52 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h | |||
| @@ -77,7 +77,7 @@ struct thermal_cooling_device { | |||
| 77 | char type[THERMAL_NAME_LENGTH]; | 77 | char type[THERMAL_NAME_LENGTH]; |
| 78 | struct device device; | 78 | struct device device; |
| 79 | void *devdata; | 79 | void *devdata; |
| 80 | struct thermal_cooling_device_ops *ops; | 80 | const struct thermal_cooling_device_ops *ops; |
| 81 | struct list_head node; | 81 | struct list_head node; |
| 82 | }; | 82 | }; |
| 83 | 83 | ||
| @@ -114,7 +114,7 @@ struct thermal_zone_device { | |||
| 114 | int last_temperature; | 114 | int last_temperature; |
| 115 | bool passive; | 115 | bool passive; |
| 116 | unsigned int forced_passive; | 116 | unsigned int forced_passive; |
| 117 | struct thermal_zone_device_ops *ops; | 117 | const struct thermal_zone_device_ops *ops; |
| 118 | struct list_head cooling_devices; | 118 | struct list_head cooling_devices; |
| 119 | struct idr idr; | 119 | struct idr idr; |
| 120 | struct mutex lock; /* protect cooling devices list */ | 120 | struct mutex lock; /* protect cooling devices list */ |
| @@ -160,11 +160,8 @@ enum { | |||
| 160 | #define THERMAL_GENL_CMD_MAX (__THERMAL_GENL_CMD_MAX - 1) | 160 | #define THERMAL_GENL_CMD_MAX (__THERMAL_GENL_CMD_MAX - 1) |
| 161 | 161 | ||
| 162 | struct thermal_zone_device *thermal_zone_device_register(char *, int, void *, | 162 | struct thermal_zone_device *thermal_zone_device_register(char *, int, void *, |
| 163 | struct | 163 | const struct thermal_zone_device_ops *, int tc1, int tc2, |
| 164 | thermal_zone_device_ops | 164 | int passive_freq, int polling_freq); |
| 165 | *, int tc1, int tc2, | ||
| 166 | int passive_freq, | ||
| 167 | int polling_freq); | ||
| 168 | void thermal_zone_device_unregister(struct thermal_zone_device *); | 165 | void thermal_zone_device_unregister(struct thermal_zone_device *); |
| 169 | 166 | ||
| 170 | int thermal_zone_bind_cooling_device(struct thermal_zone_device *, int, | 167 | int thermal_zone_bind_cooling_device(struct thermal_zone_device *, int, |
| @@ -173,9 +170,7 @@ int thermal_zone_unbind_cooling_device(struct thermal_zone_device *, int, | |||
| 173 | struct thermal_cooling_device *); | 170 | struct thermal_cooling_device *); |
| 174 | void thermal_zone_device_update(struct thermal_zone_device *); | 171 | void thermal_zone_device_update(struct thermal_zone_device *); |
| 175 | struct thermal_cooling_device *thermal_cooling_device_register(char *, void *, | 172 | struct thermal_cooling_device *thermal_cooling_device_register(char *, void *, |
| 176 | struct | 173 | const struct thermal_cooling_device_ops *); |
| 177 | thermal_cooling_device_ops | ||
| 178 | *); | ||
| 179 | void thermal_cooling_device_unregister(struct thermal_cooling_device *); | 174 | void thermal_cooling_device_unregister(struct thermal_cooling_device *); |
| 180 | extern int generate_netlink_event(u32 orig, enum events event); | 175 | extern int generate_netlink_event(u32 orig, enum events event); |
| 181 | 176 | ||
