Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usb: conversion of k_work API #34288

Merged
merged 1 commit into from
Apr 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions drivers/usb/device/usb_dc_nrfx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1915,10 +1915,10 @@ static int usb_init(const struct device *arg)
(void)nrfx_power_init(&power_config);
nrfx_power_usbevt_init(&usbevt_config);

k_work_q_start(&usbd_work_queue,
usbd_work_queue_stack,
K_KERNEL_STACK_SIZEOF(usbd_work_queue_stack),
CONFIG_SYSTEM_WORKQUEUE_PRIORITY);
k_work_queue_start(&usbd_work_queue,
usbd_work_queue_stack,
K_KERNEL_STACK_SIZEOF(usbd_work_queue_stack),
CONFIG_SYSTEM_WORKQUEUE_PRIORITY, NULL);

k_work_init(&ctx->usb_work, usbd_work_handler);

Expand Down
8 changes: 4 additions & 4 deletions subsys/usb/usb_work_q.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ static int z_usb_work_q_init(const struct device *dev)
{
ARG_UNUSED(dev);

k_work_q_start(&z_usb_work_q,
z_usb_work_q_stack,
K_KERNEL_STACK_SIZEOF(z_usb_work_q_stack),
CONFIG_USB_WORKQUEUE_PRIORITY);
k_work_queue_start(&z_usb_work_q,
z_usb_work_q_stack,
K_KERNEL_STACK_SIZEOF(z_usb_work_q_stack),
CONFIG_USB_WORKQUEUE_PRIORITY, NULL);
k_thread_name_set(&z_usb_work_q.thread, "usbworkq");

return 0;
Expand Down