Changeset 904b1bc in mainline for uspace/lib/usbhost/src/ddf_helpers.c
- Timestamp:
- 2018-05-22T10:36:58Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a4eb3ba2
- Parents:
- 4f8772d4
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-21 17:36:30)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-22 10:36:58)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/ddf_helpers.c
r4f8772d4 r904b1bc 66 66 */ 67 67 static errno_t register_endpoint(ddf_fun_t *fun, usb_pipe_desc_t *pipe_desc, 68 68 const usb_endpoint_descriptors_t *ep_desc) 69 69 { 70 70 assert(fun); … … 92 92 } 93 93 94 95 96 97 98 99 100 101 94 /** 95 * DDF usbhc_iface callback. Unregister endpoint that makes the other end of 96 * the pipe described. 97 * 98 * @param fun DDF function of the device in question. 99 * @param pipe_desc Pipe description. 100 * @return Error code. 101 */ 102 102 static errno_t unregister_endpoint(ddf_fun_t *fun, const usb_pipe_desc_t *pipe_desc) 103 103 { … … 182 182 } 183 183 184 /* If the driver didn't name the dev when enumerating, 184 /* 185 * If the driver didn't name the dev when enumerating, 185 186 * do it in some generic way. 186 187 */ … … 281 282 assert(dev); 282 283 283 const usb_target_t target = {{ 284 .address = dev->address, 285 .endpoint = ifreq->endpoint, 286 .stream = ifreq->stream, 287 }}; 284 const usb_target_t target = { 285 { 286 .address = dev->address, 287 .endpoint = ifreq->endpoint, 288 .stream = ifreq->stream, 289 } 290 }; 288 291 289 292 if (!usb_target_is_valid(&target))
Note:
See TracChangeset
for help on using the changeset viewer.