Skip to content

Commit 4274d1b

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/adc/adc_ads7052.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static int adc_ads7052_init(const struct device *dev)
275275
}
276276

277277
k_thread_create(&data->thread, data->stack,
278-
CONFIG_ADC_ADS7052_ACQUISITION_THREAD_STACK_SIZE,
278+
K_KERNEL_STACK_SIZEOF(data->stack),
279279
ads7052_acquisition_thread, data, NULL, NULL,
280280
CONFIG_ADC_ADS7052_ACQUISITION_THREAD_PRIO, 0, K_NO_WAIT);
281281

0 commit comments

Comments
 (0)