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 <michal.smola@nxp.com>
This commit is contained in:
Michal Smola 2024-09-13 11:52:48 +02:00 committed by Carles Cufí
parent 27d5528174
commit 1c944ba9ef
1 changed files with 0 additions and 5 deletions

View File

@ -124,11 +124,6 @@ static int mcux_adc16_channel_setup(const struct device *dev,
return -EINVAL; return -EINVAL;
} }
if (channel_cfg->reference != ADC_REF_INTERNAL) {
LOG_ERR("Invalid channel reference");
return -EINVAL;
}
#ifdef CONFIG_ADC_MCUX_ADC16_HW_TRIGGER #ifdef CONFIG_ADC_MCUX_ADC16_HW_TRIGGER
adc_hw_trigger_enable(dev); adc_hw_trigger_enable(dev);
#endif #endif