]> xenbits.xensource.com Git - seabios.git/commit
usb: Pass usbdevice_s to alloc_async_pipe.
authorKevin O'Connor <kevin@koconnor.net>
Thu, 8 Mar 2012 13:44:32 +0000 (08:44 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 11 Mar 2012 02:01:18 +0000 (21:01 -0500)
commit77ab4e100cd0a612bbe853d39545ad86a5941451
tree9af07f9e4f300e0659b693a909ed6b553a1c8a79
parentea2747861bd450994196e7bce9b493198c14a049
usb: Pass usbdevice_s to alloc_async_pipe.

Build the control pipe information in alloc_async_pipe directly from
the usbdevice and usb_endpoint_descriptor information.  This
simplifies the callers as they now only need to allocate/free the
devices, and do not need to peek into the pipe structure.

Replace alloc_bulk_pipe with alloc_async_pipe as they both perform the
same action now.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/usb-msc.c
src/usb.c
src/usb.h