Changeset 09daa8b in mainline for uspace/lib/usb


Ignore:
Timestamp:
2011-03-20T21:50:20Z (15 years ago)
Author:
Matus Dekanek <smekideki@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fd9f6e4c
Parents:
59e01689
Message:

using usb/devdrv interface to simplify hub communication initialization
small code correction in devdrv.c and devdrv.h

Location:
uspace/lib/usb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/include/usb/devdrv.h

    r59e01689 r09daa8b  
    7979         */
    8080        const char *name;
    81         /** Expected endpoints description. */
     81        /** Expected endpoints description, excluding default control endpoint.
     82         *
     83         * It MUST be of size expected_enpoints_count(excluding default ctrl) + 1
     84         * where the last record MUST BE NULL, otherwise catastrophic things may
     85         * happen.
     86         */
    8287        usb_endpoint_description_t **endpoints;
    8388        /** Driver ops. */
  • uspace/lib/usb/src/devdrv.c

    r59e01689 r09daa8b  
    206206 * @return Error code.
    207207 */
    208 static int initialize_pipes(usb_driver_t *drv, usb_device_t *dev)
     208static int initialize_pipes(usb_device_t *dev)
    209209{
    210210        int rc;
     
    284284        dev->driver_data = NULL;
    285285
    286         rc = initialize_pipes(driver, dev);
     286        rc = initialize_pipes(dev);
    287287        if (rc != EOK) {
    288288                free(dev);
Note: See TracChangeset for help on using the changeset viewer.