diff options
author | Caveh Jalali <caveh@chromium.org> | 2021-08-25 16:20:28 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-27 01:27:33 +0000 |
commit | 199a41cadb9e748d65d946b5c9eaf17d5b168260 (patch) | |
tree | 900652fa4ca12fb9edd30164d25fefabfc35857b /chip/stm32/adc_chip.h | |
parent | 4f9ecfc0861ec20e315934bce6e390b9ea4b3a3e (diff) | |
download | chrome-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/stm32/adc_chip.h')
-rw-r--r-- | chip/stm32/adc_chip.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/chip/stm32/adc_chip.h b/chip/stm32/adc_chip.h index 0d6ae7fe51..7e3c688c14 100644 --- a/chip/stm32/adc_chip.h +++ b/chip/stm32/adc_chip.h @@ -8,8 +8,6 @@ #ifndef __CROS_EC_ADC_CHIP_H #define __CROS_EC_ADC_CHIP_H -#include "stdint.h" - #ifdef CHIP_FAMILY_STM32L4 enum stm32_adc_smpr { STM32_ADC_SMPR_DEFAULT = 0, @@ -54,13 +52,6 @@ struct adc_t { #endif }; -/* - * Boards must provide this list of ADC channel definitions. This must match - * the enum adc_channel list provided by the board. Also, for STM32F0, this - * must be ordered by AIN ID. - */ -extern const struct adc_t adc_channels[]; - /* Disable ADC module when we don't need it anymore. */ void adc_disable(void); |