summaryrefslogtreecommitdiff
path: root/chip/host
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2021-08-25 16:20:28 -0700
committerCommit Bot <commit-bot@chromium.org>2021-08-27 01:27:33 +0000
commit199a41cadb9e748d65d946b5c9eaf17d5b168260 (patch)
tree900652fa4ca12fb9edd30164d25fefabfc35857b /chip/host
parent4f9ecfc0861ec20e315934bce6e390b9ea4b3a3e (diff)
downloadchrome-ec-199a41cadb9e748d65d946b5c9eaf17d5b168260.tar.gz
adc: Include adc_chip.h from adc.h
This reorganizes adc.h and adc_chip.h so that general code only needs to know about adc.h. adc_chip.h is now included by adc.h directly and does not need to be included in general code. BRANCH=none BUG=b:181271666 TEST=buildall passes (with next patch in series) Cq-Depend: chromium:3120316 Change-Id: I8bc107c6900e831a57f7a7fb8668eb08bb179d6c Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3120315 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'chip/host')
-rw-r--r--chip/host/adc_chip.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/chip/host/adc_chip.h b/chip/host/adc_chip.h
new file mode 100644
index 0000000000..8754be266e
--- /dev/null
+++ b/chip/host/adc_chip.h
@@ -0,0 +1,16 @@
+/* Copyright 2021 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/* Host-specific ADC module for Chrome EC */
+
+#ifndef __CROS_EC_ADC_CHIP_H
+#define __CROS_EC_ADC_CHIP_H
+
+/* Place-holder data structure to define ADC channels. */
+struct adc_t {
+ int unused;
+};
+
+#endif /* __CROS_EC_ADC_CHIP_H */