diff options
author | Diana Z <dzigterman@chromium.org> | 2021-05-04 09:46:42 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-05 16:14:50 +0000 |
commit | 61c5eb207b45814ec65915faa7e8f49af815beb8 (patch) | |
tree | e2a519286bb3565216235dfeeaa1e8f3c1830394 /baseboard/guybrush/baseboard.c | |
parent | a2d6ea845f05d4ead8e17b6e02b76441688370cc (diff) | |
download | chrome-ec-61c5eb207b45814ec65915faa7e8f49af815beb8.tar.gz |
Guybrush: 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.
Note that this is a no-op for guybrush, because the adc_channel indexes
already aligned with the temp_sensors indexes.
BRANCH=None
BUG=b:187183867
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ia316a8985271cfc2af070ad351a0aba94703dc2a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2870539
Reviewed-by: Rob Barnes <robbarnes@google.com>
Commit-Queue: Rob Barnes <robbarnes@google.com>
Diffstat (limited to 'baseboard/guybrush/baseboard.c')
-rw-r--r-- | baseboard/guybrush/baseboard.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/baseboard/guybrush/baseboard.c b/baseboard/guybrush/baseboard.c index 353018142a..972e1c96d6 100644 --- a/baseboard/guybrush/baseboard.c +++ b/baseboard/guybrush/baseboard.c @@ -195,19 +195,19 @@ const struct temp_sensor_t temp_sensors[] = { .name = "SOC", .type = TEMP_SENSOR_TYPE_BOARD, .read = board_get_soc_temp, - .idx = TEMP_SENSOR_SOC, + .idx = ADC_TEMP_SENSOR_SOC, }, [TEMP_SENSOR_CHARGER] = { .name = "Charger", .type = TEMP_SENSOR_TYPE_BOARD, .read = get_temp_3v3_30k9_47k_4050b, - .idx = TEMP_SENSOR_CHARGER, + .idx = ADC_TEMP_SENSOR_CHARGER, }, [TEMP_SENSOR_MEMORY] = { .name = "Memory", .type = TEMP_SENSOR_TYPE_BOARD, .read = board_get_memory_temp, - .idx = TEMP_SENSOR_MEMORY, + .idx = ADC_TEMP_SENSOR_MEMORY, }, [TEMP_SENSOR_CPU] = { .name = "CPU", |