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

Changeset 7711296 in mainline


Ignore:
Timestamp:
2011-11-30T16:08:14Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
f9776ae5
Parents:
9dbfd288
Message:

libusbhost, libusbdev: Minor fixes.

Location:
uspace/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/src/hub.c

    r9dbfd288 r7711296  
    227227                return EINVAL;
    228228
    229         // FIXME: this is awful, we are accessing directly the structure.
    230229        // TODO: Why not use provided connection?
    231         usb_hc_connection_t hc_conn = {
    232                 .hc_handle = connection->hc_handle,
    233                 .hc_sess = NULL
    234         };
     230        usb_hc_connection_t hc_conn;
     231        usb_hc_connection_initialize(&hc_conn, connection->hc_handle);
    235232
    236233        int rc;
  • uspace/lib/usbhost/include/usb/host/hcd.h

    r9dbfd288 r7711296  
    6363/*----------------------------------------------------------------------------*/
    6464/** Initialize hcd_t structure.
    65  * Initializes device and endpoint managers. Sets data nd hook pointer to NULL.
     65 * Initializes device and endpoint managers. Sets data and hook pointer to NULL.
    6666 * @param hcd hcd_t structure to initialize, non-null.
    6767 * @param bandwidth Available bandwidth, passed to endpoint manager.
Note: See TracChangeset for help on using the changeset viewer.