From 60b77099e0b7a0bd40e7504c2752091c378a2f1d Mon Sep 17 00:00:00 2001 From: Aseda Aboagye Date: Sat, 16 Sep 2017 17:17:59 -0700 Subject: [PATCH] zoombini: Correct Vbus ADC channel. The Vbus adc channel was defined as 0 in the enum, however, we don't actually have a Vbus ADC channel, therefore it should be defined as -1. BUG=None BRANCH=None TEST=Flash zoombini; Verify that when charge manager tries to read the Vbus voltage, the EC doesn't panic due to a non-existing channel. Change-Id: I53dd3259afc7ae76f587e5b7925ce2f9daa06402 Signed-off-by: Aseda Aboagye Reviewed-on: https://chromium-review.googlesource.com/670123 Commit-Ready: Aseda Aboagye Tested-by: Aseda Aboagye Reviewed-by: Shawn N --- board/zoombini/board.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/zoombini/board.h b/board/zoombini/board.h index ae746d8a6e..fef123e253 100644 --- a/board/zoombini/board.h +++ b/board/zoombini/board.h @@ -131,7 +131,7 @@ /* ADC signal */ enum adc_channel { - ADC_VBUS = 0, + ADC_VBUS = -1, ADC_TEMP_SENSOR_SOC, ADC_TEMP_SENSOR_CHARGER, ADC_CH_COUNT