net: Conversion of k_work API
Replace all existing deprecated API with the recommended alternative. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no> Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
4f6a365f4f
commit
188cb2cb7c
40 changed files with 338 additions and 341 deletions
|
@ -716,9 +716,9 @@ static int ppp_driver_init(const struct device *dev)
|
|||
ring_buf_init(&ppp->rx_ringbuf, sizeof(ppp->rx_buf), ppp->rx_buf);
|
||||
k_work_init(&ppp->cb_work, ppp_isr_cb_work);
|
||||
|
||||
k_work_q_start(&ppp->cb_workq, ppp_workq,
|
||||
K_KERNEL_STACK_SIZEOF(ppp_workq),
|
||||
K_PRIO_COOP(PPP_WORKQ_PRIORITY));
|
||||
k_work_queue_start(&ppp->cb_workq, ppp_workq,
|
||||
K_KERNEL_STACK_SIZEOF(ppp_workq),
|
||||
K_PRIO_COOP(PPP_WORKQ_PRIORITY), NULL);
|
||||
k_thread_name_set(&ppp->cb_workq.thread, "ppp_workq");
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue