Changeset d46ceb2b in mainline for uspace/drv/bus/usb/usbmid/main.c


Ignore:
Timestamp:
2017-10-28T14:54:29Z (7 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d37514e
Parents:
40a3bfa
Message:

Modified libusbdev to forward fun_online and _offline calls to USB drivers. Added poor man's implementation of HID device removal hook.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbmid/main.c

    r40a3bfa rd46ceb2b  
    147147}
    148148
     149static int usbmid_function_online(ddf_fun_t *fun)
     150{
     151        /* TODO: What if this is the control function? */
     152        return ddf_fun_online(fun);
     153}
     154
     155static int usbmid_function_offline(ddf_fun_t *fun)
     156{
     157        /* TODO: What if this is the control function? */
     158        return ddf_fun_offline(fun);
     159}
     160
    149161/** USB MID driver ops. */
    150162static const usb_driver_ops_t mid_driver_ops = {
     
    152164        .device_rem = usbmid_device_remove,
    153165        .device_gone = usbmid_device_gone,
     166        .function_online = usbmid_function_online,
     167        .function_offline = usbmid_function_offline
    154168};
    155169
Note: See TracChangeset for help on using the changeset viewer.