forked from len0rd/rockbox
Allow class drivers to reuse the core data buffer for control transfers. This doesn't make much difference right now, but it should keep HID memory usage lower (once HID is ready) (FS#10146 by Tomer Shalev)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20735 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2c0da9d152
commit
3314f389ba
6 changed files with 14 additions and 10 deletions
|
|
@ -117,9 +117,11 @@ int usb_serial_get_config_descriptor(unsigned char *dest,int max_packet_size)
|
|||
}
|
||||
|
||||
/* called by usb_core_control_request() */
|
||||
bool usb_serial_control_request(struct usb_ctrlrequest* req)
|
||||
bool usb_serial_control_request(struct usb_ctrlrequest* req, unsigned char* dest)
|
||||
{
|
||||
bool handled = false;
|
||||
|
||||
(void)dest;
|
||||
switch (req->bRequest) {
|
||||
default:
|
||||
logf("serial: unhandeld req %d", req->bRequest);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue