Changeset 27ed734c in mainline for uspace/drv/bus/usb/vhc/connhost.c


Ignore:
Timestamp:
2011-10-31T13:06:57Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5e07cbc0
Parents:
d25e0a4
Message:

usb: Rename get_address ⇒ get_my_address and remove redundant handle parameter.

If you want to know what address the device uses ask the device not host controller.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/vhc/connhost.c

    rd25e0a4 r27ed734c  
    479479}
    480480
    481 static int tell_address(ddf_fun_t *fun, devman_handle_t handle,
    482     usb_address_t *address)
     481static int tell_address(ddf_fun_t *fun, usb_address_t *address)
    483482{
    484483        UNSUPPORTED("tell_address");
     
    497496}
    498497
    499 static int tell_address_rh(ddf_fun_t *root_hub_fun, devman_handle_t handle,
    500     usb_address_t *address)
     498static int tell_address_rh(ddf_fun_t *root_hub_fun, usb_address_t *address)
    501499{
    502500        VHC_DATA(vhc, root_hub_fun);
    503501
    504         if (handle == 0) {
    505                 handle = root_hub_fun->handle;
    506         }
     502        devman_handle_t handle = root_hub_fun->handle;
    507503
    508504        usb_log_debug("tell_address_rh(handle=%" PRIun ")\n", handle);
     
    532528usb_iface_t vhc_usb_iface = {
    533529        .get_hc_handle = usb_iface_get_hc_handle_hc_impl,
    534         .get_address = tell_address
     530        .get_my_address = tell_address
    535531};
    536532
    537533usb_iface_t rh_usb_iface = {
    538534        .get_hc_handle = usb_iface_get_hc_handle_rh_impl,
    539         .get_address = tell_address_rh
     535        .get_my_address = tell_address_rh
    540536};
    541537
Note: See TracChangeset for help on using the changeset viewer.