Skip to content

Commit de69ebd

Browse files
ekohandelnashif
authored andcommitted
usb: correct udc_dev parameter name
Rename uhc_dev parameter of USBD_DEVICE_DEFINE macro to udc_dev to reflect that this is a USB Device Controller device and not a USB Host Controller device. Signed-off-by: Abe Kohandel <[email protected]>
1 parent 089eaf9 commit de69ebd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/zephyr/usb/usbd.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ static inline void *usbd_class_get_private(const struct usbd_class_data *const c
388388
return c_data->priv;
389389
}
390390

391-
#define USBD_DEVICE_DEFINE(device_name, uhc_dev, vid, pid) \
391+
#define USBD_DEVICE_DEFINE(device_name, udc_dev, vid, pid) \
392392
static struct usb_device_descriptor \
393393
fs_desc_##device_name = { \
394394
.bLength = sizeof(struct usb_device_descriptor), \
@@ -425,7 +425,7 @@ static inline void *usbd_class_get_private(const struct usbd_class_data *const c
425425
}; \
426426
static STRUCT_SECTION_ITERABLE(usbd_context, device_name) = { \
427427
.name = STRINGIFY(device_name), \
428-
.dev = uhc_dev, \
428+
.dev = udc_dev, \
429429
.fs_desc = &fs_desc_##device_name, \
430430
.hs_desc = &hs_desc_##device_name, \
431431
}

0 commit comments

Comments
 (0)