summaryrefslogtreecommitdiffstats
path: root/firmware/usbstack/usb_serial.c
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2009-04-18 20:40:50 +0000
committerFrank Gevaerts <frank@gevaerts.be>2009-04-18 20:40:50 +0000
commit3314f389baf54e74e3c52c069f8e829a701b2b94 (patch)
tree7407217cc1f7456999c653f610c44a9fab1bb6e1 /firmware/usbstack/usb_serial.c
parent2c0da9d15205b425276d769b4d5f1275bd6ea954 (diff)
downloadrockbox-3314f389baf54e74e3c52c069f8e829a701b2b94.tar.gz
rockbox-3314f389baf54e74e3c52c069f8e829a701b2b94.tar.bz2
rockbox-3314f389baf54e74e3c52c069f8e829a701b2b94.zip
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
Diffstat (limited to 'firmware/usbstack/usb_serial.c')
-rw-r--r--firmware/usbstack/usb_serial.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/usbstack/usb_serial.c b/firmware/usbstack/usb_serial.c
index 514df0dc2b..520a4b3370 100644
--- a/firmware/usbstack/usb_serial.c
+++ b/firmware/usbstack/usb_serial.c
@@ -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);