drivers: ieee802154: rote conversion of k_work API
Replace all existing deprecated API with the recommended alternative. Be aware that this does not address architectural errors in the use of the work API. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
659fe50ff0
commit
74f776c29c
1 changed files with 3 additions and 4 deletions
|
@ -1607,10 +1607,9 @@ static int dw1000_init(const struct device *dev)
|
|||
DWT_SYS_MASK_MRXSFDTO);
|
||||
|
||||
/* Initialize IRQ event work queue */
|
||||
k_work_q_start(&dwt_work_queue,
|
||||
dwt_work_queue_stack,
|
||||
k_work_queue_start(&dwt_work_queue, dwt_work_queue_stack,
|
||||
K_KERNEL_STACK_SIZEOF(dwt_work_queue_stack),
|
||||
CONFIG_SYSTEM_WORKQUEUE_PRIORITY);
|
||||
CONFIG_SYSTEM_WORKQUEUE_PRIORITY, NULL);
|
||||
|
||||
k_work_init(&ctx->irq_cb_work, dwt_irq_work_handler);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue