Skip to content

Commit e44a952

Browse files
ecutm1kartben
authored andcommitted
drivers: adc: Fix ads1x4s0x driver initialised asynchronously
Definition of stack variable did not match the initialiser reference in the driver Signed-off-by: Elliott Cutmore <elliott.cutmore@gmail.com>
1 parent 6c02e80 commit e44a952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/adc/adc_ads1x4s0x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,7 @@ BUILD_ASSERT(CONFIG_ADC_INIT_PRIORITY > CONFIG_SPI_INIT_PRIORITY,
15771577
static const struct ads1x4s0x_config config_##name##_##n = { \
15781578
.bus = SPI_DT_SPEC_INST_GET( \
15791579
n, SPI_OP_MODE_MASTER | SPI_MODE_CPHA | SPI_WORD_SET(8), 0), \
1580-
IF_ENABLED(CONFIG_ADC_ASYNC, (.stack = thread_stack_##n,)) \
1580+
IF_ENABLED(CONFIG_ADC_ASYNC, (.stack = thread_stack_##name##_##n,)) \
15811581
.gpio_reset = GPIO_DT_SPEC_INST_GET_OR(n, reset_gpios, {0}), \
15821582
.gpio_data_ready = GPIO_DT_SPEC_INST_GET(n, drdy_gpios), \
15831583
.gpio_start_sync = GPIO_DT_SPEC_INST_GET_OR(n, start_sync_gpios, {0}), \

0 commit comments

Comments
 (0)