diff --git a/subsys/usb/host/usbh_ch9.c b/subsys/usb/host/usbh_ch9.c index f8f587a43c3..e3f55e95eb1 100644 --- a/subsys/usb/host/usbh_ch9.c +++ b/subsys/usb/host/usbh_ch9.c @@ -85,7 +85,7 @@ buf_alloc_err: int usbh_req_desc(struct usb_device *const udev, const uint8_t type, const uint8_t index, - const uint8_t id, + const uint16_t id, const uint16_t len, struct net_buf *const buf) { diff --git a/subsys/usb/host/usbh_ch9.h b/subsys/usb/host/usbh_ch9.h index 26c21c83715..a60dc86527b 100644 --- a/subsys/usb/host/usbh_ch9.h +++ b/subsys/usb/host/usbh_ch9.h @@ -22,7 +22,7 @@ int usbh_req_setup(struct usb_device *const udev, int usbh_req_desc(struct usb_device *const udev, const uint8_t type, const uint8_t index, - const uint8_t id, + const uint16_t id, const uint16_t len, struct net_buf *const data);