summaryrefslogtreecommitdiff
path: root/include/adc.h
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2012-02-06 13:33:02 -0800
committerDavid Hendricks <dhendrix@chromium.org>2012-02-06 13:36:19 -0800
commitaf9532d6fe41a8e92a930b496586dbcfba96b236 (patch)
tree445401fc4360c0310087d45dd4e63ed5d32b4fdb /include/adc.h
parent6409913523b047ca7b1dd39bb51edf11f3eefdaa (diff)
downloadchrome-ec-af9532d6fe41a8e92a930b496586dbcfba96b236.tar.gz
Add forward declarations in ADC and temp_sensor headers
This is a trivial patch to fix compilation for boards that are not based on LM4 (e.g. Discovery). Signed-off-by: David Hendricks <dhendrix@chromium.org> TEST=Compiled for Discovery BUG=None Change-Id: Ia1f29c61ff4a1f65fe65c43a8e58def7d1217ab2
Diffstat (limited to 'include/adc.h')
-rw-r--r--include/adc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/adc.h b/include/adc.h
index 6be9542321..3288e90445 100644
--- a/include/adc.h
+++ b/include/adc.h
@@ -12,6 +12,9 @@
#include "board.h"
#include "gpio.h"
+/* forward declaration */
+enum adc_channel;
+
/* Data structure to define ADC channels. */
struct adc_t
{