forked from len0rd/rockbox
usb: add request data argument to all control request handlers
Change-Id: I237143fa0d95c914b8e25ed22f8acde96ec00551
This commit is contained in:
parent
b69d43c247
commit
dff8320a5d
8 changed files with 38 additions and 32 deletions
|
|
@ -673,11 +673,13 @@ void usb_storage_transfer_complete(int ep,int dir,int status,int length)
|
|||
}
|
||||
|
||||
/* called by usb_core_control_request() */
|
||||
bool usb_storage_control_request(struct usb_ctrlrequest* req, unsigned char* dest)
|
||||
bool usb_storage_control_request(struct usb_ctrlrequest* req, void* reqdata, unsigned char* dest)
|
||||
{
|
||||
bool handled = false;
|
||||
|
||||
(void)dest;
|
||||
(void)reqdata;
|
||||
|
||||
switch (req->bRequest) {
|
||||
case USB_BULK_GET_MAX_LUN: {
|
||||
*tb.max_lun = storage_num_drives() - 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue