diff --git a/drivers/adc/adc_ads7052.c b/drivers/adc/adc_ads7052.c index 735c73a1bf0..c4ae2264e1e 100644 --- a/drivers/adc/adc_ads7052.c +++ b/drivers/adc/adc_ads7052.c @@ -275,7 +275,7 @@ static int adc_ads7052_init(const struct device *dev) } k_thread_create(&data->thread, data->stack, - CONFIG_ADC_ADS7052_ACQUISITION_THREAD_STACK_SIZE, + K_KERNEL_STACK_SIZEOF(data->stack), ads7052_acquisition_thread, data, NULL, NULL, CONFIG_ADC_ADS7052_ACQUISITION_THREAD_PRIO, 0, K_NO_WAIT);