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 <hebad@vestas.com>
This commit is contained in:
parent
ae81429a81
commit
0e321ecc90
@ -1017,7 +1017,7 @@ static int lmp90xxx_init(const struct device *dev)
|
||||
}
|
||||
|
||||
tid = k_thread_create(&data->thread, data->stack,
|
||||
CONFIG_ADC_LMP90XXX_ACQUISITION_THREAD_STACK_SIZE,
|
||||
K_KERNEL_STACK_SIZEOF(data->stack),
|
||||
lmp90xxx_acquisition_thread,
|
||||
data, NULL, NULL,
|
||||
CONFIG_ADC_LMP90XXX_ACQUISITION_THREAD_PRIO,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user