Changeset 4ca778b in mainline for uspace/drv/bus/usb/usbmid/explore.c
- Timestamp:
- 2013-01-27T15:39:10Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2745176
- Parents:
- 0eb2a0f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbmid/explore.c
r0eb2a0f r4ca778b 40 40 #include <usb/dev/request.h> 41 41 #include <usb/dev/dp.h> 42 #include <usb/ddfiface.h>43 42 #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_impl48 };49 43 50 44 /** Tell whether given interface is already in the list. … … 93 87 /* Walk all descriptors nested in the current configuration decriptor; 94 88 * i.e. all interface descriptors. */ 95 for (; interface_ptr != NULL;89 for (; interface_ptr != NULL; 96 90 interface_ptr = usb_dp_get_sibling_descriptor( 97 91 &parser, &data, config_descriptor, interface_ptr)) … … 170 164 return rc; 171 165 } 172 173 166 174 175 167 /* Create driver soft-state. */ 176 168 usb_mid_t *usb_mid = usb_device_data_alloc(dev, sizeof(usb_mid_t)); … … 186 178 return ENOMEM; 187 179 } 188 ddf_fun_set_ops(usb_mid->ctl_fun, &mid_device_ops);189 180 190 181 /* Bind control function. */ … … 197 188 } 198 189 199 200 190 /* Create interface children. */ 201 191 list_initialize(&usb_mid->interface_list);
Note:
See TracChangeset
for help on using the changeset viewer.