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:
Martin Jäger 2021-05-04 19:38:31 +02:00 committed by Kumar Gala
commit 08b067f855

View file

@ -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;