Skip to content

Commit 60bbd1a

Browse files
author
Josuah Demangeon
committed
usb: uvc: move the header definition to include/
Move the UVC header with all the definitions from the UVC standard to share it between USB host and device class implementation. Signed-off-by: Josuah Demangeon <[email protected]>
1 parent 9b3aa73 commit 60bbd1a

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

subsys/usb/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ add_subdirectory_ifdef(CONFIG_USB_DEVICE_STACK device)
55
add_subdirectory_ifdef(CONFIG_USB_DEVICE_STACK_NEXT device_next)
66
add_subdirectory_ifdef(CONFIG_USB_HOST_STACK host)
77
add_subdirectory_ifdef(CONFIG_USBC_STACK usb_c)
8+
add_subdirectory(common)

subsys/usb/common/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2025 Nordic Semiconductor
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
zephyr_include_directories(include)
File renamed without changes.

subsys/usb/device_next/class/usbd_uvc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
#include <zephyr/usb/usb_ch9.h>
2626
#include <zephyr/usb/class/usbd_uvc.h>
2727

28-
#include "usbd_uvc.h"
28+
#include "usb_uvc.h"
29+
2930
#include "../../../drivers/video/video_ctrls.h"
3031
#include "../../../drivers/video/video_device.h"
3132

0 commit comments

Comments
 (0)