Skip to content

Commit 0e321ec

Browse files
henrikbrixandersenMaureenHelm
authored andcommitted
drivers: adc: lmp90xxx: 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: #69131 Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent ae81429 commit 0e321ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/adc/adc_lmp90xxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ static int lmp90xxx_init(const struct device *dev)
10171017
}
10181018

10191019
tid = k_thread_create(&data->thread, data->stack,
1020-
CONFIG_ADC_LMP90XXX_ACQUISITION_THREAD_STACK_SIZE,
1020+
K_KERNEL_STACK_SIZEOF(data->stack),
10211021
lmp90xxx_acquisition_thread,
10221022
data, NULL, NULL,
10231023
CONFIG_ADC_LMP90XXX_ACQUISITION_THREAD_PRIO,

0 commit comments

Comments
 (0)