From 3fd7ea980ea8f86aca24958f78dfdf38dc2e56d3 Mon Sep 17 00:00:00 2001 From: Johann Fischer Date: Tue, 7 Jan 2025 15:52:02 +0100 Subject: [PATCH] usb: host: fix callback parameter type The parameter should not be a pointer to type usbh_udev_cb_t. Signed-off-by: Johann Fischer --- subsys/usb/host/usbh_ch9.c | 2 +- subsys/usb/host/usbh_device.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;