Changeset 0e126be7 in mainline for uspace/drv/usbkbd/main.c


Ignore:
Timestamp:
2010-11-20T13:17:54Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4b4c797
Parents:
e27595b
Message:

USB drivers specifies full target in requests

File:
1 edited

Legend:

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

    re27595b r0e126be7  
    4141        usb_endpoint_t poll_endpoint = 1;
    4242
    43         rc = usb_drv_async_interrupt_in(dev->parent_phone, poll_endpoint,
     43        usb_address_t my_address = usb_drv_get_my_address(dev->parent_phone,
     44            dev);
     45        if (my_address < 0) {
     46                return;
     47        }
     48
     49        usb_target_t poll_target = {
     50                .address = my_address,
     51                .endpoint = poll_endpoint
     52        };
     53
     54        rc = usb_drv_async_interrupt_in(dev->parent_phone, poll_target,
    4455            buffer, BUFFER_SIZE, &actual_size, &handle);
    4556        if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.