Commit ad852839 authored by Henrik Brix Andersen's avatar Henrik Brix Andersen Committed by Maureen Helm
Browse files

drivers: adc: ad5592: use K_KERNEL_STACK_SIZEOF()



Use K_KERNEL_STACK_SIZEOF() for calculating thread stack size, as this
takes K_KERNEL_STACK_RESERVED into account.

Fixes: #69133

Signed-off-by: default avatarHenrik Brix Andersen <hebad@vestas.com>
parent 4274d1b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -218,7 +218,7 @@ static int adc_ad5592_init(const struct device *dev)
	adc_context_init(&data->ctx);

	tid = k_thread_create(&data->thread, data->stack,
			CONFIG_ADC_AD5592_ACQUISITION_THREAD_STACK_SIZE,
			K_KERNEL_STACK_SIZEOF(data->stack),
			(k_thread_entry_t)adc_ad5592_acquisition_thread, data, NULL, NULL,
			CONFIG_ADC_AD5592_ACQUISITION_THREAD_PRIO, 0, K_NO_WAIT);