From 1c944ba9efd12a8693665f8089aa3055afdf1137 Mon Sep 17 00:00:00 2001 From: Michal Smola Date: Fri, 13 Sep 2024 11:52:48 +0200 Subject: [PATCH] drivers: adc: adc_mcux_adc16: Remove reference check Only ADC_REF_INTERNAL reference option is allowed in adc_mcux_adc16 driver, but the reference is not used for driver configuration. Internal, external or VDD can be used in reality depending on SoC type and its configuration. Remove the reference option check to allow any reference option from Devicetree. Signed-off-by: Michal Smola --- drivers/adc/adc_mcux_adc16.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/adc/adc_mcux_adc16.c b/drivers/adc/adc_mcux_adc16.c index 7ab59b02f2f..49e89de58ce 100644 --- a/drivers/adc/adc_mcux_adc16.c +++ b/drivers/adc/adc_mcux_adc16.c @@ -124,11 +124,6 @@ static int mcux_adc16_channel_setup(const struct device *dev, return -EINVAL; } - if (channel_cfg->reference != ADC_REF_INTERNAL) { - LOG_ERR("Invalid channel reference"); - return -EINVAL; - } - #ifdef CONFIG_ADC_MCUX_ADC16_HW_TRIGGER adc_hw_trigger_enable(dev); #endif