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 <nix.ward@gmail.com>
This commit is contained in:
Nick Ward 2023-11-03 19:55:25 +11:00 committed by Carles Cufí
parent 8aba7740b8
commit e338299bd4

View file

@ -1080,7 +1080,7 @@ static int ads114s0x_gpio_write_config(const struct device *dev)
{ {
struct ads114s0x_data *data = dev->data; struct ads114s0x_data *data = dev->data;
const struct ads114s0x_config *config = dev->config; 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 register_values[ARRAY_SIZE(register_addresses)];
uint8_t gpio_dat = 0; uint8_t gpio_dat = 0;
uint8_t gpio_con = 0; uint8_t gpio_con = 0;