Skip to content

Commit 5e5ce30

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 3570940 commit 5e5ce30

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
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

subsys/usb/host/usbh_class.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ struct usbh_class_filter {
5656
* @retval true if the USB Device descriptor matches at least one rule.
5757
*/
5858
bool usbh_class_is_matching(struct usbh_class_filter *const filters, size_t n_filters,
59-
struct usb_device_descriptor *const desc);
59+
struct usb_device_descriptor *const desc);
6060

6161
#endif /* ZEPHYR_INCLUDE_USBD_CLASS_H */

0 commit comments

Comments
 (0)