summaryrefslogtreecommitdiff
path: root/common/temp_sensor.c
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-05-15 11:18:21 +0800
committerChromeBot <chrome-bot@google.com>2013-05-15 12:12:23 -0700
commitd9cf88b35ad211d873f48b41fd985e22ff049b83 (patch)
treeb57229f791bf4ac8b3bcdd358d80cd788f3de17c /common/temp_sensor.c
parent3addfe80f9c19045457f4b489c99c3067db4fc96 (diff)
downloadchrome-ec-d9cf88b35ad211d873f48b41fd985e22ff049b83.tar.gz
Add thermal engine test
BUG=chrome-os-partner:19236 TEST=Pass the test. BRANCH=None Change-Id: I1c96437e1fb3492faa5352383f852dc1d2718ace Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/51248 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common/temp_sensor.c')
-rw-r--r--common/temp_sensor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/temp_sensor.c b/common/temp_sensor.c
index 3079e3b2a8..e33d787b9c 100644
--- a/common/temp_sensor.c
+++ b/common/temp_sensor.c
@@ -24,7 +24,7 @@
/* Default temperature to report in mapped memory */
#define MAPPED_TEMP_DEFAULT (296 - EC_TEMP_SENSOR_OFFSET)
-int temp_sensor_read(enum temp_sensor_id id, int *temp_ptr)
+test_mockable int temp_sensor_read(enum temp_sensor_id id, int *temp_ptr)
{
const struct temp_sensor_t *sensor;