Skip to content

Commit 79d5857

Browse files
henrikbrixandersenMaureenHelm
authored andcommitted
drivers: adc: max1125x: 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: #69129 Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent ad85283 commit 79d5857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/adc/adc_max1125x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ static int max1125x_init(const struct device *dev)
755755
}
756756

757757
k_tid_t tid = k_thread_create(
758-
&data->thread, data->stack, K_THREAD_STACK_SIZEOF(data->stack),
758+
&data->thread, data->stack, K_KERNEL_STACK_SIZEOF(data->stack),
759759
max1125x_acquisition_thread, (void *)dev, NULL, NULL,
760760
CONFIG_ADC_MAX1125X_ACQUISITION_THREAD_PRIORITY, 0, K_NO_WAIT);
761761
k_thread_name_set(tid, "adc_max1125x");

0 commit comments

Comments
 (0)