Fork us on GitHub Follow us on Facebook Follow us on Twitter

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


Ignore:
Timestamp:
2011-04-15T13:17:55Z (11 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master
Children:
c7dd69d, cbdb6457, ff76509
Parents:
aaf6155
Message:

Removed use of old pipe API functions from HID driver and framework.

File:
1 edited

Legend:

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

    raaf6155 r8fd4ba0  
    119119        uint16_t length =  hid_desc->report_desc_info.length;
    120120        size_t actual_size = 0;
    121        
    122         /*
    123          * Start session for the control transfer.
    124          */
    125         int sess_rc = usb_pipe_start_session(&dev->ctrl_pipe);
    126         if (sess_rc != EOK) {
    127                 usb_log_warning("Failed to start a session: %s.\n",
    128                     str_error(sess_rc));
    129                 return sess_rc;
    130         }
    131121
    132122        /*
     
    162152                    "%u)\n", actual_size, length);
    163153                return EINVAL;
    164         }
    165        
    166         /*
    167          * End session for the control transfer.
    168          */
    169         sess_rc = usb_pipe_end_session(&dev->ctrl_pipe);
    170         if (sess_rc != EOK) {
    171                 usb_log_warning("Failed to end a session: %s.\n",
    172                     str_error(sess_rc));
    173                 free(*report_desc);
    174                 *report_desc = NULL;
    175                 return sess_rc;
    176154        }
    177155       
Note: See TracChangeset for help on using the changeset viewer.