Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'thermal_core-doc-comments-update' of .git into next

Zhang Rui 09681dfa 70d23b29

+11 -3
+11 -3
Documentation/thermal/sysfs-api.txt
··· 31 31 1. thermal sysfs driver interface functions 32 32 33 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 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 40 This interface function adds a new thermal zone device (sensor) to 39 41 /sys/class/thermal folder as thermal_zone[0-*]. It tries to bind all the 40 42 thermal cooling devices registered at the same time. 41 43 42 - name: the thermal zone name. 44 + type: the thermal zone type. 43 45 trips: the total number of trip points this thermal zone supports. 44 46 mask: Bit string: If 'n'th bit is set, then trip point 'n' is writeable. 45 47 devdata: device private data ··· 59 57 will be fired. 60 58 .set_emul_temp: set the emulation temperature which helps in debugging 61 59 different threshold temperature points. 60 + tzp: thermal zone platform parameters. 61 + passive_delay: number of milliseconds to wait between polls when 62 + performing passive cooling. 63 + polling_delay: number of milliseconds to wait between polls when checking 64 + whether trip points have been crossed (0 for interrupt driven systems). 65 + 62 66 63 67 1.1.2 void thermal_zone_device_unregister(struct thermal_zone_device *tz) 64 68