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 <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/670123
Commit-Ready: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
Aseda Aboagye
2017-09-16 17:17:59 -07:00
committed by chrome-bot
parent d9a7b48d35
commit 60b77099e0

View File

@@ -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