diff options
author | Lukasz Majewski <l.majewski@samsung.com> | 2014-12-08 20:04:21 +0300 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2014-12-09 04:10:00 +0300 |
commit | 184a4bf623fa587067851d25435fcb2f41de445b (patch) | |
tree | 98023bf8abd50b6672f3e4b0f34e9c41c7944456 /include/linux/thermal.h | |
parent | ce8be7785922de0ef497b20384425ed04f674f9d (diff) | |
download | linux-184a4bf623fa587067851d25435fcb2f41de445b.tar.xz |
thermal: of: Extend current of-thermal.c code to allow setting emulated temp
Before this change it was only possible to set get_temp() and get_trend()
methods to be used in the common code handling passing parameters via
device tree to "cpu-thermal" CPU thermal zone device.
Now it is possible to also set emulated value of temperature for debug
purposes.
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Acked-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'include/linux/thermal.h')
-rw-r--r-- | include/linux/thermal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index b8d91efa854e..99be7fc79c3b 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -297,10 +297,13 @@ struct thermal_genl_event { * * Optional: * @get_trend: a pointer to a function that reads the sensor temperature trend. + * @set_emul_temp: a pointer to a function that sets sensor emulated + * temperature. */ struct thermal_zone_of_device_ops { int (*get_temp)(void *, long *); int (*get_trend)(void *, long *); + int (*set_emul_temp)(void *, unsigned long); }; /** |