mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
thermal: core: export apis to get slope and offset
Add apis for platform thermal drivers to query for slope and offset attributes, which might be needed for temperature calculations. Signed-off-by: Rajendra Nayak <[email protected]> Signed-off-by: Eduardo Valentin <[email protected]> Signed-off-by: Zhang Rui <[email protected]>
This commit is contained in:
parent
5e6703bd2d
commit
4a7069a32c
3 changed files with 50 additions and 0 deletions
|
|
@ -140,6 +140,18 @@ temperature) and throttle appropriate devices.
|
|||
Normally this function will not need to be called and the resource
|
||||
management code will ensure that the resource is freed.
|
||||
|
||||
1.1.7 int thermal_zone_get_slope(struct thermal_zone_device *tz)
|
||||
|
||||
This interface is used to read the slope attribute value
|
||||
for the thermal zone device, which might be useful for platform
|
||||
drivers for temperature calculations.
|
||||
|
||||
1.1.8 int thermal_zone_get_offset(struct thermal_zone_device *tz)
|
||||
|
||||
This interface is used to read the offset attribute value
|
||||
for the thermal zone device, which might be useful for platform
|
||||
drivers for temperature calculations.
|
||||
|
||||
1.2 thermal cooling device interface
|
||||
1.2.1 struct thermal_cooling_device *thermal_cooling_device_register(char *name,
|
||||
void *devdata, struct thermal_cooling_device_ops *)
|
||||
|
|
|
|||
Loading…
Reference in a new issue