Changeset 8c40822 in mainline for uspace/drv/usbkbd/kbddev.c


Ignore:
Timestamp:
2011-03-25T14:22:04Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0533b03
Parents:
4acf099 (diff), b53d3b7 (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:

Merged changes from branch maklf (bugfix + paths)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbkbd/kbddev.c

    r4acf099 r8c40822  
    602602//      int rc = usb_hid_boot_keyboard_input_report(buffer, actual_size,
    603603//          callbacks, kbd_dev);
    604         int rc = usb_hid_parse_report(kbd_dev->parser, buffer,
    605             actual_size, callbacks, kbd_dev);
     604        usb_hid_report_path_t *path = usb_hid_report_path();
     605        usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_KEYBOARD, 0);
     606       
     607        int rc = usb_hid_parse_report(kbd_dev->hid_dev->parser, buffer,
     608            actual_size, path, USB_HID_PATH_COMPARE_STRICT, callbacks, kbd_dev);
     609
     610        usb_hid_report_path_free (path);
    606611       
    607612        if (rc != EOK) {
     
    748753         */
    749754        usb_hid_report_path_t path;
    750         path.usage_page = USB_HIDUT_PAGE_KEYBOARD;
     755        path = usb_hid_report_path();
     756        usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_KEYBOARD, 0);
    751757        kbd_dev->key_count = usb_hid_report_input_length(
    752             kbd_dev->parser, &path);
     758            kbd_dev->hid_dev->parser, path, USB_HID_PATH_COMPARE_STRICT);
     759        usb_hid_report_path_free (path);
    753760       
    754761        usb_log_debug("Size of the input report: %zu\n", kbd_dev->key_count);
Note: See TracChangeset for help on using the changeset viewer.