Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 5cfcc64 in mainline


Ignore:
Timestamp:
2011-12-06T12:19:15Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
6bba41d
Parents:
2582d8f
Message:

libusbhost: User both stored error value and transferred size in the finish wrapper.

Location:
uspace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/ohci_batch.c

    r2582d8f r5cfcc64  
    7070        assert(ohci_batch->usb_batch);
    7171        usb_transfer_batch_finish(ohci_batch->usb_batch,
    72             ohci_batch->device_buffer + ohci_batch->usb_batch->setup_size,
    73             ohci_batch->usb_batch->buffer_size);
     72            ohci_batch->device_buffer + ohci_batch->usb_batch->setup_size);
    7473        ohci_transfer_batch_dispose(ohci_batch);
    7574}
  • uspace/drv/bus/usb/uhci/uhci_batch.c

    r2582d8f r5cfcc64  
    6464        assert(uhci_batch->usb_batch);
    6565        usb_transfer_batch_finish(uhci_batch->usb_batch,
    66             uhci_transfer_batch_data_buffer(uhci_batch),
    67             uhci_batch->usb_batch->buffer_size);
     66            uhci_transfer_batch_data_buffer(uhci_batch));
    6867        uhci_transfer_batch_dispose(uhci_batch);
    6968}
  • uspace/lib/usbhost/include/usb/host/usb_transfer_batch.h

    r2582d8f r5cfcc64  
    116116 */
    117117static inline void usb_transfer_batch_finish(
    118     const usb_transfer_batch_t *instance, const void* data, size_t size)
     118    const usb_transfer_batch_t *instance, const void* data)
    119119{
    120120        assert(instance);
    121         usb_transfer_batch_finish_error(instance, data, size, instance->error);
     121        usb_transfer_batch_finish_error(
     122            instance, data, instance->transfered_size, instance->error);
    122123}
    123124/*----------------------------------------------------------------------------*/
Note: See TracChangeset for help on using the changeset viewer.