Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/request.c

    ra6add7a r4723444  
    110110  *     (must be in USB endianness).
    111111  * @param data Buffer where to store data accepted during the DATA stage.
    112   *     (they will come in USB endianness).
     112  *     (they will come in USB endianess).
    113113  * @param data_size Size of the @p data buffer
    114114  *     (in native endianness).
     
    161161 * the new address.
    162162 *
     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 *
    163169 * @param pipe Control endpoint pipe (session must be already started).
    164170 * @param new_address New USB address to be set (in native endianness).
     
    522528                return EEMPTY;
    523529        }
    524         /* Subtract first 2 bytes (length and descriptor type). */
     530        /* Substract first 2 bytes (length and descriptor type). */
    525531        string_descriptor_size -= 2;
    526532
     
    542548        size_t i;
    543549        for (i = 0; i < langs_count; i++) {
    544                 /* Language code from the descriptor is in USB endianness. */
     550                /* Language code from the descriptor is in USB endianess. */
    545551                /* FIXME: is this really correct? */
    546552                uint16_t lang_code = (string_descriptor[2 + 2 * i + 1] << 8)
     
    563569 *
    564570 * @param[in] pipe Control endpoint pipe (session must be already started).
    565  * @param[in] index String index (in native endianness),
     571 * @param[in] index String index (in native endianess),
    566572 *      first index has number 1 (index from descriptors can be used directly).
    567  * @param[in] lang String language (in native endianness).
     573 * @param[in] lang String language (in native endianess).
    568574 * @param[out] string_ptr Where to store allocated string in native encoding.
    569575 * @return Error code.
     
    607613                goto leave;
    608614        }
    609         /* Subtract first 2 bytes (length and descriptor type). */
     615        /* Substract first 2 bytes (length and descriptor type). */
    610616        string_size -= 2;
    611617
Note: See TracChangeset for help on using the changeset viewer.