Skip to content

Commit 3fd7ea9

Browse files
jfischer-nokartben
authored andcommitted
usb: host: fix callback parameter type
The parameter should not be a pointer to type usbh_udev_cb_t. Signed-off-by: Johann Fischer <[email protected]>
1 parent 5012965 commit 3fd7ea9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

subsys/usb/host/usbh_ch9.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ int usbh_req_setup(struct usb_device *const udev,
5353
uint8_t ep = usb_reqtype_is_to_device(&req) ? 0x00 : 0x80;
5454
int ret;
5555

56-
xfer = usbh_xfer_alloc(udev, ep, 0, 64, SETUP_REQ_TIMEOUT, (void *)ch9_req_cb);
56+
xfer = usbh_xfer_alloc(udev, ep, 0, 64, SETUP_REQ_TIMEOUT, ch9_req_cb);
5757
if (!xfer) {
5858
return -ENOMEM;
5959
}

subsys/usb/host/usbh_device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static inline struct uhc_transfer *usbh_xfer_alloc(struct usb_device *udev,
4444
const uint8_t attrib,
4545
const uint16_t mps,
4646
const uint16_t timeout,
47-
usbh_udev_cb_t *const cb)
47+
usbh_udev_cb_t cb)
4848
{
4949
struct usbh_contex *const ctx = udev->ctx;
5050

0 commit comments

Comments
 (0)