Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 317a463 in mainline for uspace/lib/drv/generic/remote_usb.c


Ignore:
Timestamp:
2011-11-25T15:11:22Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
56bdd9a4
Parents:
fb48a0e
Message:

usb: Drop unused `handle' parameter.

Rename get_interface ⇒ get_my_interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/remote_usb.c

    rfb48a0e r317a463  
    4141
    4242static void remote_usb_get_my_address(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
    43 static void remote_usb_get_interface(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
     43static void remote_usb_get_my_interface(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
    4444static void remote_usb_get_hc_handle(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
    45 //static void remote_usb(device_t *, void *, ipc_callid_t, ipc_call_t *);
    4645
    4746/** Remote USB interface operations. */
    4847static remote_iface_func_ptr_t remote_usb_iface_ops [] = {
    4948        [IPC_M_USB_GET_MY_ADDRESS] = remote_usb_get_my_address,
    50         [IPC_M_USB_GET_INTERFACE] = remote_usb_get_interface,
     49        [IPC_M_USB_GET_MY_INTERFACE] = remote_usb_get_my_interface,
    5150        [IPC_M_USB_GET_HOST_CONTROLLER_HANDLE] = remote_usb_get_hc_handle,
    5251};
     
    8079}
    8180
    82 void remote_usb_get_interface(ddf_fun_t *fun, void *iface,
     81void remote_usb_get_my_interface(ddf_fun_t *fun, void *iface,
    8382    ipc_callid_t callid, ipc_call_t *call)
    8483{
    8584        usb_iface_t *usb_iface = (usb_iface_t *) iface;
    8685
    87         if (usb_iface->get_interface == NULL) {
     86        if (usb_iface->get_my_interface == NULL) {
    8887                async_answer_0(callid, ENOTSUP);
    8988                return;
    9089        }
    9190
    92         devman_handle_t handle = DEV_IPC_GET_ARG1(*call);
    93 
    9491        int iface_no;
    95         int rc = usb_iface->get_interface(fun, handle, &iface_no);
     92        int rc = usb_iface->get_my_interface(fun, &iface_no);
    9693        if (rc != EOK) {
    9794                async_answer_0(callid, rc);
Note: See TracChangeset for help on using the changeset viewer.