Changeset 409dce5 in mainline
- Timestamp:
- 2011-01-09T08:55:47Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 276aeda
- Parents:
- 38c5dfa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/usbdrvreq.c
r38c5dfa r409dce5 80 80 * @param[in] descriptor_type Descriptor type (device/configuration/HID/...). 81 81 * @param[in] descriptor_index Descriptor index. 82 * @param[in] lang auge Language index.82 * @param[in] language Language index. 83 83 * @param[out] buffer Buffer where to store the retrieved descriptor. 84 84 * @param[in] size Size of the @p buffer. … … 92 92 void *buffer, size_t size, size_t *actual_size) 93 93 { 94 if (buffer == NULL) { 95 return EBADMEM; 96 } 97 if (size == 0) { 98 return EINVAL; 99 } 100 94 101 /* Prepare the target. */ 95 102 usb_target_t target = { … … 221 228 void *buffer, size_t buffer_size, size_t *actual_buffer_size) 222 229 { 223 if (buffer == NULL) {224 return EBADMEM;225 }226 227 230 int rc = usb_drv_req_get_descriptor(phone, address, 228 231 USB_REQUEST_TYPE_STANDARD,
Note:
See TracChangeset
for help on using the changeset viewer.