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:
Henrik Brix Andersen 2021-05-03 22:49:12 +02:00 committed by Kumar Gala
commit db22c42ba7

View file

@ -472,9 +472,9 @@ static int canopen_init(const struct device *dev)
{ {
ARG_UNUSED(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), 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); k_work_init(&canopen_tx_queue.work, canopen_tx_retry);