Changeset e50cd7f in mainline for uspace/lib/usb/src/hidreport.c


Ignore:
Timestamp:
2011-04-17T19:17:55Z (13 years ago)
Author:
Matej Klonfar <maklf@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
63517c2, cfbbe1d3
Parents:
ef354b6 (diff), 8595577b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

new report structure fixes

File:
1 edited

Legend:

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

    ref354b6 re50cd7f  
    8080                d = usb_dp_get_sibling_descriptor(&parser, &parser_data,
    8181                    dev->descriptors.configuration, d);
     82                ++i;
    8283        }
    8384       
     
    118119        uint16_t length =  hid_desc->report_desc_info.length;
    119120        size_t actual_size = 0;
    120        
    121         /*
    122          * Start session for the control transfer.
    123          */
    124         int sess_rc = usb_pipe_start_session(&dev->ctrl_pipe);
    125         if (sess_rc != EOK) {
    126                 usb_log_warning("Failed to start a session: %s.\n",
    127                     str_error(sess_rc));
    128                 return sess_rc;
    129         }
    130121
    131122        /*
     
    161152                    "%u)\n", actual_size, length);
    162153                return EINVAL;
    163         }
    164        
    165         /*
    166          * End session for the control transfer.
    167          */
    168         sess_rc = usb_pipe_end_session(&dev->ctrl_pipe);
    169         if (sess_rc != EOK) {
    170                 usb_log_warning("Failed to end a session: %s.\n",
    171                     str_error(sess_rc));
    172                 free(*report_desc);
    173                 *report_desc = NULL;
    174                 return sess_rc;
    175154        }
    176155       
Note: See TracChangeset for help on using the changeset viewer.