Changeset 4d3c13e in mainline for uspace/drv/usbhid/kbd/kbddev.c


Ignore:
Timestamp:
2011-06-16T19:19:10Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9f7276d
Parents:
98dc29d
Message:

Unused code removal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/kbd/kbddev.c

    r98dc29d r4d3c13e  
    434434 *     usb_hid_parse_report().
    435435 */
    436 static void usb_kbd_process_data(usb_hid_dev_t *hid_dev, usb_kbd_t *kbd_dev/*,
    437                                  uint8_t *buffer, size_t actual_size*/)
     436static void usb_kbd_process_data(usb_hid_dev_t *hid_dev, usb_kbd_t *kbd_dev)
    438437{
    439438        assert(hid_dev->report != NULL);
    440439        assert(hid_dev != NULL);
    441440        assert(kbd_dev != NULL);
    442 
    443 //      usb_log_debug("Calling usb_hid_parse_report() with "
    444 //          "buffer %s\n", usb_debug_str_buffer(buffer, actual_size, 0));
    445441       
    446442        usb_hid_report_path_t *path = usb_hid_report_path();
    447443        usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_KEYBOARD, 0);
    448444
    449 //      uint8_t report_id;
    450 //      int rc = usb_hid_parse_report(hid_dev->report, buffer, actual_size,
    451 //          &report_id);
    452        
    453 //      if (rc != EOK) {
    454 //              usb_log_warning("Error in usb_hid_parse_report():"
    455 //                  "%s\n", str_error(rc));
    456 //      }
    457        
    458445        usb_hid_report_path_set_report_id (path, hid_dev->report_id);
    459446       
     
    756743/*----------------------------------------------------------------------------*/
    757744
    758 bool usb_kbd_polling_callback(usb_hid_dev_t *hid_dev, void *data/*,
    759      uint8_t *buffer, size_t buffer_size*/)
     745bool usb_kbd_polling_callback(usb_hid_dev_t *hid_dev, void *data)
    760746{
    761747        if (hid_dev == NULL/* || buffer == NULL*/ || data == NULL) {
     
    768754       
    769755        // TODO: add return value from this function
    770         usb_kbd_process_data(hid_dev, kbd_dev/*, buffer, buffer_size*/);
     756        usb_kbd_process_data(hid_dev, kbd_dev);
    771757       
    772758        return true;
     
    804790        if ((*kbd_dev)->repeat_mtx != NULL) {
    805791                //assert(!fibril_mutex_is_locked((*kbd_dev)->repeat_mtx));
     792                // FIXME - the fibril_mutex_is_locked may not cause
     793                // fibril scheduling
    806794                while (fibril_mutex_is_locked((*kbd_dev)->repeat_mtx)) {}
    807795                free((*kbd_dev)->repeat_mtx);
Note: See TracChangeset for help on using the changeset viewer.