diff options
-rw-r--r-- | Documentation/thermal/sysfs-api.txt | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Documentation/thermal/sysfs-api.txt b/Documentation/thermal/sysfs-api.txt index bb42266afc66..a71bd5b90fe8 100644 --- a/Documentation/thermal/sysfs-api.txt +++ b/Documentation/thermal/sysfs-api.txt | |||
@@ -31,15 +31,17 @@ temperature) and throttle appropriate devices. | |||
31 | 1. thermal sysfs driver interface functions | 31 | 1. thermal sysfs driver interface functions |
32 | 32 | ||
33 | 1.1 thermal zone device interface | 33 | 1.1 thermal zone device interface |
34 | 1.1.1 struct thermal_zone_device *thermal_zone_device_register(char *name, | 34 | 1.1.1 struct thermal_zone_device *thermal_zone_device_register(char *type, |
35 | int trips, int mask, void *devdata, | 35 | int trips, int mask, void *devdata, |
36 | struct thermal_zone_device_ops *ops) | 36 | struct thermal_zone_device_ops *ops, |
37 | const struct thermal_zone_params *tzp, | ||
38 | int passive_delay, int polling_delay)) | ||
37 | 39 | ||
38 | This interface function adds a new thermal zone device (sensor) to | 40 | This interface function adds a new thermal zone device (sensor) to |
39 | /sys/class/thermal folder as thermal_zone[0-*]. It tries to bind all the | 41 | /sys/class/thermal folder as thermal_zone[0-*]. It tries to bind all the |
40 | thermal cooling devices registered at the same time. | 42 | thermal cooling devices registered at the same time. |
41 | 43 | ||
42 | name: the thermal zone name. | 44 | type: the thermal zone type. |
43 | trips: the total number of trip points this thermal zone supports. | 45 | trips: the total number of trip points this thermal zone supports. |
44 | mask: Bit string: If 'n'th bit is set, then trip point 'n' is writeable. | 46 | mask: Bit string: If 'n'th bit is set, then trip point 'n' is writeable. |
45 | devdata: device private data | 47 | devdata: device private data |
@@ -57,6 +59,12 @@ temperature) and throttle appropriate devices. | |||
57 | will be fired. | 59 | will be fired. |
58 | .set_emul_temp: set the emulation temperature which helps in debugging | 60 | .set_emul_temp: set the emulation temperature which helps in debugging |
59 | different threshold temperature points. | 61 | different threshold temperature points. |
62 | tzp: thermal zone platform parameters. | ||
63 | passive_delay: number of milliseconds to wait between polls when | ||
64 | performing passive cooling. | ||
65 | polling_delay: number of milliseconds to wait between polls when checking | ||
66 | whether trip points have been crossed (0 for interrupt driven systems). | ||
67 | |||
60 | 68 | ||
61 | 1.1.2 void thermal_zone_device_unregister(struct thermal_zone_device *tz) | 69 | 1.1.2 void thermal_zone_device_unregister(struct thermal_zone_device *tz) |
62 | 70 | ||