summaryrefslogtreecommitdiff
path: root/include/temp_sensor.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-02-10 16:30:35 -0800
committerDave Parker <dparker@chromium.org>2012-02-13 10:41:34 -0800
commit6b8e8be7033a2808ff4839bc27765bcc5d7e4e63 (patch)
treec3cd58960dd68a5671ff8d61a097dd8335b39449 /include/temp_sensor.h
parent3b02beb41cb82e2b843418afd0b0d46890e3702f (diff)
downloadchrome-ec-6b8e8be7033a2808ff4839bc27765bcc5d7e4e63.tar.gz
Fix discovery and bds builds, which don't have temp sensor or peci
Remove id field from temp_sensor_t struct, since it's only used by the console command (which already knows the id, because it's looping over it). Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=none TEST='temps' Change-Id: I0970850073d644509cd5501d7ac4421c7373143b
Diffstat (limited to 'include/temp_sensor.h')
-rw-r--r--include/temp_sensor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/temp_sensor.h b/include/temp_sensor.h
index a89dbe7e5a..fb35260e12 100644
--- a/include/temp_sensor.h
+++ b/include/temp_sensor.h
@@ -12,9 +12,10 @@
#include "board.h"
/* "enum temp_sensor_id" must be defined for each board in board.h. */
+enum temp_sensor_id;
+
struct temp_sensor_t {
const char* name;
- enum temp_sensor_id id;
/* Sensor address. Used by read and print functions. */
int addr;
/* Read sensor value and return temperature in K. */