Changeset b59ec8c in mainline


Ignore:
Timestamp:
2011-05-28T17:20:42Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bf793bf
Parents:
dd143621
Message:

usbmouse: use library function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbmouse/init.c

    rdd143621 rb59ec8c  
    3939#include <usb/hid/hid.h>
    4040#include <usb/dev/request.h>
     41#include <usb/hid/request.h>
    4142#include <errno.h>
    4243
     
    126127       
    127128        /* Set the boot protocol. */
    128         rc = usb_control_request_set(&dev->ctrl_pipe,
    129             USB_REQUEST_TYPE_CLASS, USB_REQUEST_RECIPIENT_INTERFACE,
    130             USB_HIDREQ_SET_PROTOCOL, USB_HID_PROTOCOL_BOOT, dev->interface_no,
    131             NULL, 0);
     129        rc = usbhid_req_set_protocol(&dev->ctrl_pipe, dev->interface_no,
     130            USB_HID_PROTOCOL_BOOT);
    132131        if (rc != EOK) {
    133132                goto leave;
Note: See TracChangeset for help on using the changeset viewer.