drivers: adc: ite_it8xxx2: constify device config access

`const` was missing from one device config access.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2022-01-18 23:21:27 +01:00 committed by Carles Cufí
parent 93d48baa16
commit 93b3cba2f1

View file

@ -70,7 +70,7 @@ struct adc_it8xxx2_cfg {
static int adc_it8xxx2_channel_setup(const struct device *dev,
const struct adc_channel_cfg *channel_cfg)
{
struct adc_it8xxx2_cfg *config = dev->config;
const struct adc_it8xxx2_cfg *config = dev->config;
if (channel_cfg->acquisition_time != ADC_ACQ_TIME_DEFAULT) {
LOG_ERR("Selected ADC acquisition time is not valid");