Changeset 4ca778b in mainline for uspace/drv/bus/usb/usbmid/explore.c


Ignore:
Timestamp:
2013-01-27T15:39:10Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2745176
Parents:
0eb2a0f
Message:

usbmid: Use initialized parent to get address and hc handle.

Remove forwarding helpers from libusb.
Remove unused headers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbmid/explore.c

    r0eb2a0f r4ca778b  
    4040#include <usb/dev/request.h>
    4141#include <usb/dev/dp.h>
    42 #include <usb/ddfiface.h>
    4342#include "usbmid.h"
    44 
    45 /** Operations of the device itself. */
    46 static ddf_dev_ops_t mid_device_ops = {
    47         .interfaces[USB_DEV_IFACE] = &usb_iface_hub_impl
    48 };
    4943
    5044/** Tell whether given interface is already in the list.
     
    9387        /* Walk all descriptors nested in the current configuration decriptor;
    9488         * i.e. all interface descriptors. */
    95         for (;interface_ptr != NULL;
     89        for (; interface_ptr != NULL;
    9690            interface_ptr = usb_dp_get_sibling_descriptor(
    9791                &parser, &data, config_descriptor, interface_ptr))
     
    170164                return rc;
    171165        }
    172 
    173166       
    174 
    175167        /* Create driver soft-state. */
    176168        usb_mid_t *usb_mid = usb_device_data_alloc(dev, sizeof(usb_mid_t));
     
    186178                return ENOMEM;
    187179        }
    188         ddf_fun_set_ops(usb_mid->ctl_fun, &mid_device_ops);
    189180
    190181        /* Bind control function. */
     
    197188        }
    198189
    199 
    200190        /* Create interface children. */
    201191        list_initialize(&usb_mid->interface_list);
Note: See TracChangeset for help on using the changeset viewer.