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:
Peter Bigot 2021-03-31 10:31:29 -05:00 committed by Anas Nashif
commit 74f776c29c

View file

@ -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_KERNEL_STACK_SIZEOF(dwt_work_queue_stack),
CONFIG_SYSTEM_WORKQUEUE_PRIORITY);
k_work_queue_start(&dwt_work_queue, dwt_work_queue_stack,
K_KERNEL_STACK_SIZEOF(dwt_work_queue_stack),
CONFIG_SYSTEM_WORKQUEUE_PRIORITY, NULL);
k_work_init(&ctx->irq_cb_work, dwt_irq_work_handler);