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

libusbdev: Cleanup.

File:
1 edited

Legend:

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

    rc804484 r3538b0e  
    5757{
    5858        assert(connection);
    59 
    60         if (hc_connection == NULL) {
     59        if (hc_connection == NULL)
    6160                return EBADMEM;
    62         }
    63 
    64         if ((address < 0) || (address >= USB11_ADDRESS_MAX)) {
     61        if ((address < 0) || (address >= USB11_ADDRESS_MAX))
    6562                return EINVAL;
    66         }
    6763
    6864        connection->hc_connection = hc_connection;
     
    7066        return EOK;
    7167}
    72 /*----------------------------------------------------------------------------*/
    73 /** Initialize connection to USB device on default address.
    74  *
    75  * @param dev_connection Device connection structure to be initialized.
    76  * @param hc_connection Initialized connection to host controller.
    77  * @return Error code.
    78  */
    79 static inline int usb_device_connection_initialize_on_default_address(
    80     usb_device_connection_t *connection, usb_hc_connection_t *hc_conn)
    81 {
    82         return usb_device_connection_initialize(connection, hc_conn, 0);
    83 }
    84 
    8568/*----------------------------------------------------------------------------*/
    8669static inline int usb_device_register_endpoint(usb_device_connection_t *conn,
Note: See TracChangeset for help on using the changeset viewer.