From dff8320a5d04d74d8a08a81d9e6f6ed296d672ce Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Mon, 20 Sep 2021 01:05:39 +0100 Subject: usb: add request data argument to all control request handlers Change-Id: I237143fa0d95c914b8e25ed22f8acde96ec00551 --- firmware/usbstack/usb_class_driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/usbstack/usb_class_driver.h') diff --git a/firmware/usbstack/usb_class_driver.h b/firmware/usbstack/usb_class_driver.h index 0ee08579e4..bffc994d9e 100644 --- a/firmware/usbstack/usb_class_driver.h +++ b/firmware/usbstack/usb_class_driver.h @@ -80,7 +80,7 @@ struct usb_class_driver { able to handle it, it should ack the request, and return true. Otherwise it should return false. Optional function */ - bool (*control_request)(struct usb_ctrlrequest* req, unsigned char *dest); + bool (*control_request)(struct usb_ctrlrequest* req, void* reqdata, unsigned char *dest); #ifdef HAVE_HOTSWAP /* Tells the driver that a hotswappable disk/card was inserted or -- cgit v1.2.3