From 6deebdd13a08bc1be7da13dd446ca9df00a25ad6 Mon Sep 17 00:00:00 2001 From: Guillaume Gautier Date: Tue, 17 Jan 2023 17:54:41 +0100 Subject: [PATCH] drivers: adc: Remove now unused variables for STM32 ADC Remove boolean variables for internal channels now that we use channel number directly Signed-off-by: Guillaume Gautier --- drivers/adc/adc_stm32.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/adc/adc_stm32.c b/drivers/adc/adc_stm32.c index 9cc3d653710..deda8a40d9a 100644 --- a/drivers/adc/adc_stm32.c +++ b/drivers/adc/adc_stm32.c @@ -268,9 +268,6 @@ struct adc_stm32_cfg { void (*irq_cfg_func)(void); struct stm32_pclken pclken; const struct pinctrl_dev_config *pcfg; - bool has_temp_channel; - bool has_vref_channel; - bool has_vbat_channel; int8_t temp_channel; int8_t vref_channel; int8_t vbat_channel; @@ -1397,9 +1394,6 @@ static const struct adc_stm32_cfg adc_stm32_cfg_##index = { \ .bus = DT_INST_CLOCKS_CELL(index, bus), \ }, \ .pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(index), \ - .has_temp_channel = DT_INST_PROP(index, has_temp_channel), \ - .has_vref_channel = DT_INST_PROP(index, has_vref_channel), \ - .has_vbat_channel = DT_INST_PROP(index, has_vbat_channel), \ .temp_channel = DT_INST_PROP_OR(index, temp_channel, 0xFF), \ .vref_channel = DT_INST_PROP_OR(index, vref_channel, 0xFF), \ .vbat_channel = DT_INST_PROP_OR(index, vbat_channel, 0xFF), \