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


Ignore:
Timestamp:
2011-05-07T10:53:41Z (13 years ago)
Author:
Matej Klonfar <maklf@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc5908e
Parents:
ba17f5b
Message:

Removed functions for returning size of report for usage path

File:
1 edited

Legend:

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

    rba17f5b rbd2394b  
    693693       
    694694        while (field != NULL) {
    695                 usb_log_debug2("FIELD (%p) - VALUE(%d) USAGE(%u)\n",
    696                     field, field->value, field->usage);
     695                //usb_log_debug2("FIELD (%p) - VALUE(%d) USAGE(%u)\n",
     696                //    field, field->value, field->usage);
    697697               
    698698                assert(i < kbd_dev->key_count);
     
    858858        usb_hid_report_path_set_report_id(path, 0);
    859859       
    860         kbd_dev->key_count = usb_hid_report_input_length(
    861             hid_dev->report, path,
    862             USB_HID_PATH_COMPARE_END | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY);
     860        kbd_dev->key_count = usb_hid_report_size(
     861            hid_dev->report, 0, USB_HID_REPORT_TYPE_INPUT);
    863862        usb_hid_report_path_free(path);
    864863       
     
    901900            kbd_dev->led_path, USB_HIDUT_PAGE_LED, 0);
    902901       
    903         kbd_dev->led_output_size = usb_hid_report_output_size(hid_dev->report,
    904             kbd_dev->led_path,
    905             USB_HID_PATH_COMPARE_END | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY);
     902        kbd_dev->led_output_size = usb_hid_report_size(hid_dev->report, 0,
     903            USB_HID_REPORT_TYPE_OUTPUT);
    906904       
    907905        usb_log_debug("Output report size (in items): %zu\n",
Note: See TracChangeset for help on using the changeset viewer.