From e338299bd4ad2324d882e15c1f7ebb8096f0b44d Mon Sep 17 00:00:00 2001 From: Nick Ward Date: Fri, 3 Nov 2023 19:55:25 +1100 Subject: [PATCH] drivers: adc: adc_ads114s0x: fix incorrect type Affected CONFIG_ADC_ADS114S0X_GPIO=y build. register_addresses was wrong type for ads114s0x_write_multiple_registers() Signed-off-by: Nick Ward --- drivers/adc/adc_ads114s0x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/adc/adc_ads114s0x.c b/drivers/adc/adc_ads114s0x.c index 4ad78c7246..e5ab699bcb 100644 --- a/drivers/adc/adc_ads114s0x.c +++ b/drivers/adc/adc_ads114s0x.c @@ -1080,7 +1080,7 @@ static int ads114s0x_gpio_write_config(const struct device *dev) { struct ads114s0x_data *data = dev->data; const struct ads114s0x_config *config = dev->config; - uint8_t register_addresses[2]; + enum ads114s0x_register register_addresses[2]; uint8_t register_values[ARRAY_SIZE(register_addresses)]; uint8_t gpio_dat = 0; uint8_t gpio_con = 0;