Changeset 1a38701 in mainline for uspace/lib/usb/src/dev.c


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

libusb, libusbdev: Move usb_device_connection to separate header in libusbdev.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/dev.c

    rc24c157d r1a38701  
    106106        return EOK;
    107107}
    108 /*----------------------------------------------------------------------------*/
    109 int usb_device_connection_initialize(usb_device_connection_t *connection,
    110     usb_hc_connection_t *hc_connection, usb_address_t address)
    111 {
    112         assert(connection);
    113 
    114         if (hc_connection == NULL) {
    115                 return EBADMEM;
    116         }
    117 
    118         if ((address < 0) || (address >= USB11_ADDRESS_MAX)) {
    119                 return EINVAL;
    120         }
    121 
    122         connection->hc_connection = hc_connection;
    123         connection->address = address;
    124         return EOK;
    125 }
Note: See TracChangeset for help on using the changeset viewer.