summaryrefslogtreecommitdiff
path: root/include/adc.h
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-04-30 20:02:58 +0800
committerChromeBot <chrome-bot@google.com>2013-04-30 10:38:43 -0700
commitc08e0ade765bf69fb9ab3f62305a84a4d3d34c1d (patch)
tree7392ff1c7148233efc85dd86dc90092d7d53f72f /include/adc.h
parent115ab924fc16e8d8403433b243b1fabb53e42dac (diff)
downloadchrome-ec-c08e0ade765bf69fb9ab3f62305a84a4d3d34c1d.tar.gz
Fix ADC test for LM4
LM4 doesn't have implementation of adc_read_all_channels(). Let's use adc_read_channel() in this case. BUG=chrome-os-partner:18598 TEST=Build stress test for link. See no error about adc_read_all_channels() undefined. BRANCH=None Change-Id: I5b13384468667cbd17b83faab9f9d3fdc48de91d Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/49589 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/adc.h')
-rw-r--r--include/adc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/adc.h b/include/adc.h
index 715852cd76..8c5dda02d5 100644
--- a/include/adc.h
+++ b/include/adc.h
@@ -10,6 +10,8 @@
#include "common.h"
+#define ADC_READ_ERROR -1
+
/**
* Read an ADC channel.
*