canbus: isotp: use new k_work API
Replace soon-to-be-deprecated call to start queue. Signed-off-by: Martin Jäger <martin@libre.solar>
This commit is contained in:
parent
293802c407
commit
08b067f855
1 changed files with 5 additions and 4 deletions
|
@ -1333,11 +1333,12 @@ int isotp_send_buf(const struct device *can_dev,
|
|||
static int isotp_workq_init(const struct device *dev)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
LOG_DBG("Starting workqueue");
|
||||
k_work_q_start(&isotp_workq,
|
||||
tx_stack,
|
||||
k_work_queue_start(&isotp_workq, tx_stack,
|
||||
K_KERNEL_STACK_SIZEOF(tx_stack),
|
||||
CONFIG_ISOTP_WORKQUEUE_PRIO);
|
||||
CONFIG_ISOTP_WORKQUEUE_PRIO, NULL);
|
||||
|
||||
k_thread_name_set(&isotp_workq.thread, "isotp_work");
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue