diff --git a/subsys/usb/host/usbh_ch9.c b/subsys/usb/host/usbh_ch9.c index 9c2cf087bee..425d036dd1c 100644 --- a/subsys/usb/host/usbh_ch9.c +++ b/subsys/usb/host/usbh_ch9.c @@ -53,7 +53,7 @@ int usbh_req_setup(struct usb_device *const udev, uint8_t ep = usb_reqtype_is_to_device(&req) ? 0x00 : 0x80; int ret; - xfer = usbh_xfer_alloc(udev, ep, 0, 64, SETUP_REQ_TIMEOUT, (void *)ch9_req_cb); + xfer = usbh_xfer_alloc(udev, ep, 0, 64, SETUP_REQ_TIMEOUT, ch9_req_cb); if (!xfer) { return -ENOMEM; } diff --git a/subsys/usb/host/usbh_device.h b/subsys/usb/host/usbh_device.h index 742c6a71803..4050273c6c9 100644 --- a/subsys/usb/host/usbh_device.h +++ b/subsys/usb/host/usbh_device.h @@ -44,7 +44,7 @@ static inline struct uhc_transfer *usbh_xfer_alloc(struct usb_device *udev, const uint8_t attrib, const uint16_t mps, const uint16_t timeout, - usbh_udev_cb_t *const cb) + usbh_udev_cb_t cb) { struct usbh_contex *const ctx = udev->ctx;