summaryrefslogtreecommitdiff
path: root/common/temp_sensor.c
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 /common/temp_sensor.c
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 'common/temp_sensor.c')
-rw-r--r--common/temp_sensor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/temp_sensor.c b/common/temp_sensor.c
index d4285653ed..9a0abbdcbc 100644
--- a/common/temp_sensor.c
+++ b/common/temp_sensor.c
@@ -169,7 +169,7 @@ static int command_temps(int argc, char **argv)
for (i = 0; i < TEMP_SENSOR_COUNT; ++i) {
uart_printf(" Temp from %s: ", temp_sensors[i].name);
- t = temp_sensor_read(temp_sensors[i].id);
+ t = temp_sensor_read(i);
if (t < 0) {
uart_printf("Error.\n\n");
rv = -1;
@@ -185,7 +185,7 @@ static int command_temps(int argc, char **argv)
}
DECLARE_CONSOLE_COMMAND(temps, command_temps);
-static int command_sensor_info(int argc, char ** argv)
+static int command_sensor_info(int argc, char **argv)
{
int i;
int rv;