summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Roth <martinroth@chromium.org>2016-12-29 20:35:22 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-01-02 14:04:10 -0800
commitfd498b77c5adb8ac4b17770b99797ab6ce90d0d7 (patch)
tree4be770463c4da9c44055f41a9682aebb942a062e
parent388d561d54f02b228f4be52902f2ec46e91f6577 (diff)
downloadchrome-ec-fd498b77c5adb8ac4b17770b99797ab6ce90d0d7.tar.gz
stm32: Remove unused struct definitions
The code that referenced these structure definitions was removed months ago. GCC 6.2 warns about the structures being definte but not used. BRANCH=none BUG=none TEST=Build tested only Change-Id: I68de7cc351667b3fb51aa9004dfc86d936f4a9cc Signed-off-by: Martin Roth <martinroth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/424432 Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r--chip/stm32/adc-stm32f3.c5
-rw-r--r--chip/stm32/adc-stm32l.c5
2 files changed, 0 insertions, 10 deletions
diff --git a/chip/stm32/adc-stm32f3.c b/chip/stm32/adc-stm32f3.c
index a8203bae24..cd04fa2273 100644
--- a/chip/stm32/adc-stm32f3.c
+++ b/chip/stm32/adc-stm32f3.c
@@ -30,11 +30,6 @@ struct mutex adc_lock;
static int watchdog_ain_id;
-static const struct dma_option dma_adc_option = {
- STM32_DMAC_ADC, (void *)&STM32_ADC_DR,
- STM32_DMA_CCR_MSIZE_16_BIT | STM32_DMA_CCR_PSIZE_16_BIT,
-};
-
static inline void adc_set_channel(int sample_id, int channel)
{
uint32_t mask, val;
diff --git a/chip/stm32/adc-stm32l.c b/chip/stm32/adc-stm32l.c
index 5a67254f29..270d953252 100644
--- a/chip/stm32/adc-stm32l.c
+++ b/chip/stm32/adc-stm32l.c
@@ -21,11 +21,6 @@ struct mutex adc_lock;
static int restore_clock;
-static const struct dma_option dma_adc_option = {
- STM32_DMAC_ADC, (void *)&STM32_ADC_DR,
- STM32_DMA_CCR_MSIZE_16_BIT | STM32_DMA_CCR_PSIZE_16_BIT,
-};
-
static inline void adc_set_channel(int sample_id, int channel)
{
uint32_t mask, val;