Changeset b591cab in mainline


Ignore:
Timestamp:
2012-12-22T20:47:25Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f8d43aa
Parents:
56a07e0
Message:

libusbhost: usb_transfer_batch: Remove private data member.

Nothing used it.

Location:
uspace/lib/usbhost
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/include/usb/host/usb_transfer_batch.h

    r56a07e0 rb591cab  
    8080         */
    8181        int error;
    82 
    83         /** Driver specific data */
    84         void *private_data;
    85         /** Callback to properly remove driver data during destruction */
    86         void (*private_data_dtor)(void *p_data);
    8782} usb_transfer_batch_t;
    8883
     
    109104    usbhc_iface_transfer_out_callback_t func_out,
    110105    void *arg,
    111     ddf_fun_t *fun,
    112     void *private_data,
    113     void (*private_data_dtor)(void *p_data)
     106    ddf_fun_t *fun
    114107);
    115108void usb_transfer_batch_destroy(const usb_transfer_batch_t *instance);
  • uspace/lib/usbhost/src/hcd.c

    r56a07e0 rb591cab  
    109109        usb_transfer_batch_t *batch =
    110110            usb_transfer_batch_create(ep, data, size, setup_data,
    111             in, out, arg, fun, NULL, NULL);
     111            in, out, arg, fun);
    112112        if (!batch) {
    113113                return ENOMEM;
  • uspace/lib/usbhost/src/usb_transfer_batch.c

    r56a07e0 rb591cab  
    6262    usbhc_iface_transfer_out_callback_t func_out,
    6363    void *arg,
    64     ddf_fun_t *fun,
    65     void *private_data,
    66     void (*private_data_dtor)(void *)
     64    ddf_fun_t *fun
    6765    )
    6866{
     
    8280                instance->setup_size = 0;
    8381                instance->fun = fun;
    84                 instance->private_data = private_data;
    85                 instance->private_data_dtor = private_data_dtor;
    8682                instance->transfered_size = 0;
    8783                instance->error = EOK;
     
    109105        if (instance->ep) {
    110106                endpoint_release(instance->ep);
    111         }
    112         if (instance->private_data) {
    113                 assert(instance->private_data_dtor);
    114                 instance->private_data_dtor(instance->private_data);
    115107        }
    116108        free(instance);
Note: See TracChangeset for help on using the changeset viewer.