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:
parent
27d5528174
commit
1c944ba9ef
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue