summaryrefslogtreecommitdiff
path: root/chip/it83xx/adc_chip.h
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/it83xx/adc_chip.h
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/it83xx/adc_chip.h')
-rw-r--r--chip/it83xx/adc_chip.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/chip/it83xx/adc_chip.h b/chip/it83xx/adc_chip.h
index 23cc68fb34..15a8e68e94 100644
--- a/chip/it83xx/adc_chip.h
+++ b/chip/it83xx/adc_chip.h
@@ -8,6 +8,8 @@
#ifndef __CROS_EC_ADC_CHIP_H
#define __CROS_EC_ADC_CHIP_H
+#include <stdint.h>
+
#include "common.h"
/*
@@ -121,12 +123,6 @@ struct vcmp_t {
enum chip_adc_channel adc_ch;
};
-/*
- * Boards must provide this list of ADC channel definitions. This must match
- * the enum adc_channel list provided by the board.
- */
-extern const struct adc_t adc_channels[];
-
#ifdef CONFIG_ADC_VOLTAGE_COMPARATOR
/*
* Boards must provide this list of voltage comparator definitions.