diff options
author | Vic Yang <victoryang@google.com> | 2012-03-15 14:55:28 +0800 |
---|---|---|
committer | Vic Yang <victoryang@google.com> | 2012-03-16 10:40:52 +0800 |
commit | 9f8e8dc6a3461cf0e8e3758db876c7b98c35a92a (patch) | |
tree | 02e5ca561dab349f9e74db3a4ecae807a1420888 /include/thermal.h | |
parent | 7d1884ee06793b776a8b8af3508e6cb6b7027b3f (diff) | |
download | chrome-ec-9f8e8dc6a3461cf0e8e3758db876c7b98c35a92a.tar.gz |
Temperature sensor grouping.
Group temperature sensors into different types so we only have to set
temperature threshold for each type instead of each sensor.
Signed-off-by: Vic Yang <victoryang@google.com>
BUG=chrome-os-partner:8466
TEST=Fan control still works.
Change-Id: I7acc714c32f282cec490b9e02d402ab91a53becf
Diffstat (limited to 'include/thermal.h')
-rw-r--r-- | include/thermal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/thermal.h b/include/thermal.h index a2c26d9d4d..ab606baaa8 100644 --- a/include/thermal.h +++ b/include/thermal.h @@ -8,6 +8,7 @@ #ifndef __CROS_EC_THERMAL_H #define __CROS_EC_THERMAL_H +#include "temp_sensor.h" #include "util.h" #define THERMAL_CONFIG_NO_FLAG 0x0 @@ -46,10 +47,10 @@ struct thermal_config_t { }; /* Set the threshold temperature value. Return -1 on error. */ -int thermal_set_threshold(int sensor_id, int threshold_id, int value); +int thermal_set_threshold(enum temp_sensor_type type, int threshold_id, int value); /* Get the threshold temperature value. Return -1 on error. */ -int thermal_get_threshold(int sensor_id, int threshold_id); +int thermal_get_threshold(enum temp_sensor_type type, int threshold_id); /* Toggle automatic fan speed control. Return -1 on error. */ int thermal_toggle_auto_fan_ctrl(int auto_fan_on); |