summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2021-05-04 09:27:38 -0600
committerCommit Bot <commit-bot@chromium.org>2021-05-05 16:14:49 +0000
commita2d6ea845f05d4ead8e17b6e02b76441688370cc (patch)
treed220424fb9381acd82974ef5a26f6d68c267cffd
parent5c5ab750e63d350eb7d7f09120a9c9373ea898e5 (diff)
downloadchrome-ec-a2d6ea845f05d4ead8e17b6e02b76441688370cc.tar.gz
Mancomb: Correct temperature indexes
The temp_sensor index should indicate the "index among the same kind of sensors". In the case of thermistors, this will be directly used as the ADC index to read from. BRANCH=None BUG=b:187183867 TEST=on mancomb, verify temperature sensor readings are reasonable Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I3c3f340abc72649f22c96031d79d554b01d6a097 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2870538 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
-rw-r--r--baseboard/mancomb/baseboard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/baseboard/mancomb/baseboard.c b/baseboard/mancomb/baseboard.c
index a9e61baa5a..a7d66b885a 100644
--- a/baseboard/mancomb/baseboard.c
+++ b/baseboard/mancomb/baseboard.c
@@ -172,19 +172,19 @@ const struct temp_sensor_t temp_sensors[] = {
.name = "SOC",
.type = TEMP_SENSOR_TYPE_BOARD,
.read = get_temp_3v3_30k9_47k_4050b,
- .idx = TEMP_SENSOR_SOC,
+ .idx = ADC_TEMP_SENSOR_SOC,
},
[TEMP_SENSOR_MEMORY] = {
.name = "Memory",
.type = TEMP_SENSOR_TYPE_BOARD,
.read = get_temp_3v3_30k9_47k_4050b,
- .idx = TEMP_SENSOR_MEMORY,
+ .idx = ADC_TEMP_SENSOR_MEMORY,
},
[TEMP_SENSOR_AMBIENT] = {
.name = "Ambient",
.type = TEMP_SENSOR_TYPE_BOARD,
.read = get_temp_3v3_30k9_47k_4050b,
- .idx = TEMP_SENSOR_AMBIENT,
+ .idx = ADC_TEMP_SENSOR_AMBIENT,
},
[TEMP_SENSOR_CPU] = {
.name = "CPU",