usb: host: fix callback parameter type
The parameter should not be a pointer to type usbh_udev_cb_t. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
parent
5012965046
commit
3fd7ea980e
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user