Changeset 03ffb69 in mainline


Ignore:
Timestamp:
2011-12-12T12:59:47Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6a21877
Parents:
d02834c
Message:

libusbdev: Remove unused function.

This one was a duplicate implementation. Use usb/dev.h.

Location:
uspace/lib/usbdev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/include/usb/dev/pipes.h

    rd02834c r03ffb69  
    116116
    117117
    118 int usb_device_get_assigned_interface(const ddf_dev_t *);
    119 
    120118int usb_pipe_initialize(usb_pipe_t *, usb_device_connection_t *,
    121119    usb_endpoint_t, usb_transfer_type_t, size_t, usb_direction_t);
  • uspace/lib/usbdev/src/pipes.c

    rd02834c r03ffb69  
    3333 * USB endpoint pipes miscellaneous functions.
    3434 */
    35 #include <usb_iface.h>
    3635#include <usb/dev/pipes.h>
    3736#include <usb/dev/request.h>
     
    3938#include <assert.h>
    4039
    41 /** Tell USB interface assigned to given device.
    42  *
    43  * @param device Device in question.
    44  * @return Error code (ENOTSUP means any).
    45  */
    46 int usb_device_get_assigned_interface(const ddf_dev_t *device)
    47 {
    48         assert(device);
    49         async_sess_t *parent_sess =
    50             devman_parent_device_connect(EXCHANGE_ATOMIC, device->handle,
    51             IPC_FLAG_BLOCKING);
    52         if (!parent_sess)
    53                 return ENOMEM;
    54 
    55         async_exch_t *exch = async_exchange_begin(parent_sess);
    56         if (!exch) {
    57                 async_hangup(parent_sess);
    58                 return ENOMEM;
    59         }
    60 
    61         int iface_no;
    62         const int ret = usb_get_my_interface(exch, &iface_no);
    63 
    64         return ret == EOK ? iface_no : ret;
    65 }
    66 /*----------------------------------------------------------------------------*/
    6740/** Prepare pipe for a long transfer.
    6841 *
Note: See TracChangeset for help on using the changeset viewer.