Changeset b0fc92c in mainline for uspace/lib/usbhost/src/iface.c


Ignore:
Timestamp:
2013-07-26T13:29:05Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
059d507
Parents:
f3922c2
Message:

libusb, libdrv, libusbhost: Remove searching for dev handle by usb address

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/iface.c

    rf3922c2 rb0fc92c  
    4141#include <usb/host/hcd.h>
    4242#include "ddf_helpers.h"
    43 
    44 /** Find device handle by address interface function.
    45  *
    46  * @param[in] fun DDF function that was called.
    47  * @param[in] address Address in question.
    48  * @param[out] handle Where to store device handle if found.
    49  * @return Error code.
    50  */
    51 static int find_by_address(ddf_fun_t *fun, usb_address_t address,
    52     devman_handle_t *handle)
    53 {
    54         assert(fun);
    55         hcd_t *hcd = dev_to_hcd(ddf_fun_get_dev(fun));
    56         assert(hcd);
    57         return usb_device_manager_get_info_by_address(
    58             &hcd->dev_manager, address, handle, NULL);
    59 }
    6043
    6144/** Register endpoint interface function.
     
    148131/** usbhc Interface implementation using hcd_t from libusbhost library. */
    149132usbhc_iface_t hcd_iface = {
    150         .get_handle = find_by_address,
    151 
    152133        .register_endpoint = register_endpoint,
    153134        .unregister_endpoint = unregister_endpoint,
Note: See TracChangeset for help on using the changeset viewer.