Changes in uspace/lib/usb/src/request.c [a6add7a:4723444] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/request.c
ra6add7a r4723444 110 110 * (must be in USB endianness). 111 111 * @param data Buffer where to store data accepted during the DATA stage. 112 * (they will come in USB endian ness).112 * (they will come in USB endianess). 113 113 * @param data_size Size of the @p data buffer 114 114 * (in native endianness). … … 161 161 * the new address. 162 162 * 163 * @see usb_drv_reserve_default_address 164 * @see usb_drv_release_default_address 165 * @see usb_drv_request_address 166 * @see usb_drv_release_address 167 * @see usb_drv_bind_address 168 * 163 169 * @param pipe Control endpoint pipe (session must be already started). 164 170 * @param new_address New USB address to be set (in native endianness). … … 522 528 return EEMPTY; 523 529 } 524 /* Sub tract first 2 bytes (length and descriptor type). */530 /* Substract first 2 bytes (length and descriptor type). */ 525 531 string_descriptor_size -= 2; 526 532 … … 542 548 size_t i; 543 549 for (i = 0; i < langs_count; i++) { 544 /* Language code from the descriptor is in USB endian ness. */550 /* Language code from the descriptor is in USB endianess. */ 545 551 /* FIXME: is this really correct? */ 546 552 uint16_t lang_code = (string_descriptor[2 + 2 * i + 1] << 8) … … 563 569 * 564 570 * @param[in] pipe Control endpoint pipe (session must be already started). 565 * @param[in] index String index (in native endian ness),571 * @param[in] index String index (in native endianess), 566 572 * first index has number 1 (index from descriptors can be used directly). 567 * @param[in] lang String language (in native endian ness).573 * @param[in] lang String language (in native endianess). 568 574 * @param[out] string_ptr Where to store allocated string in native encoding. 569 575 * @return Error code. … … 607 613 goto leave; 608 614 } 609 /* Sub tract first 2 bytes (length and descriptor type). */615 /* Substract first 2 bytes (length and descriptor type). */ 610 616 string_size -= 2; 611 617
Note:
See TracChangeset
for help on using the changeset viewer.