Changeset a6add7a in mainline for uspace/lib/usb/src/request.c


Ignore:
Timestamp:
2011-03-04T23:35:22Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
960bee9
Parents:
d78a32f
Message:

Comment and documentation fixes

In the process also removed several functions that are no longer
needed.

This commit shall not affect functionality in any way.

File:
1 edited

Legend:

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

    rd78a32f ra6add7a  
    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 endianess).
     112  *     (they will come in USB endianness).
    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  *
    169163 * @param pipe Control endpoint pipe (session must be already started).
    170164 * @param new_address New USB address to be set (in native endianness).
     
    528522                return EEMPTY;
    529523        }
    530         /* Substract first 2 bytes (length and descriptor type). */
     524        /* Subtract first 2 bytes (length and descriptor type). */
    531525        string_descriptor_size -= 2;
    532526
     
    548542        size_t i;
    549543        for (i = 0; i < langs_count; i++) {
    550                 /* Language code from the descriptor is in USB endianess. */
     544                /* Language code from the descriptor is in USB endianness. */
    551545                /* FIXME: is this really correct? */
    552546                uint16_t lang_code = (string_descriptor[2 + 2 * i + 1] << 8)
     
    569563 *
    570564 * @param[in] pipe Control endpoint pipe (session must be already started).
    571  * @param[in] index String index (in native endianess),
     565 * @param[in] index String index (in native endianness),
    572566 *      first index has number 1 (index from descriptors can be used directly).
    573  * @param[in] lang String language (in native endianess).
     567 * @param[in] lang String language (in native endianness).
    574568 * @param[out] string_ptr Where to store allocated string in native encoding.
    575569 * @return Error code.
     
    613607                goto leave;
    614608        }
    615         /* Substract first 2 bytes (length and descriptor type). */
     609        /* Subtract first 2 bytes (length and descriptor type). */
    616610        string_size -= 2;
    617611
Note: See TracChangeset for help on using the changeset viewer.