canbus: canopen: conversion of k_work API
Replace all existing deprecated API with the recommended alternative. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
027ce3d458
commit
db22c42ba7
1 changed files with 3 additions and 3 deletions
|
@ -472,9 +472,9 @@ static int canopen_init(const struct device *dev)
|
|||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
k_work_q_start(&canopen_tx_workq, canopen_tx_workq_stack,
|
||||
k_work_queue_start(&canopen_tx_workq, canopen_tx_workq_stack,
|
||||
K_KERNEL_STACK_SIZEOF(canopen_tx_workq_stack),
|
||||
CONFIG_CANOPEN_TX_WORKQUEUE_PRIORITY);
|
||||
CONFIG_CANOPEN_TX_WORKQUEUE_PRIORITY, NULL);
|
||||
|
||||
k_work_init(&canopen_tx_queue.work, canopen_tx_retry);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue