Changeset fa4b12d5 in mainline


Ignore:
Timestamp:
2018-01-25T12:20:11Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d08aa42d
Parents:
296d22fc
Message:

usbhost utility: removed unnecessary bus argument

Location:
uspace
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/device.c

    r296d22fc rfa4b12d5  
    116116
    117117        uint16_t max_packet_size;
    118         if ((err = hc_get_ep0_max_packet_size(&max_packet_size,
    119             (bus_t *) &hc->bus, &dev->base)))
     118        if ((err = hc_get_ep0_max_packet_size(&max_packet_size, &dev->base)))
    120119                return err;
    121120
  • uspace/lib/usbhost/include/usb/host/utility.h

    r296d22fc rfa4b12d5  
    4747
    4848uint16_t hc_get_ep0_initial_mps(usb_speed_t);
    49 int hc_get_ep0_max_packet_size(uint16_t *, bus_t *, device_t *);
     49int hc_get_ep0_max_packet_size(uint16_t *, device_t *);
    5050void hc_reset_toggles(const usb_transfer_batch_t *batch, endpoint_reset_toggle_t);
    5151int hc_setup_virtual_root_hub(hc_device_t *, usb_speed_t);
  • uspace/lib/usbhost/src/usb2_bus.c

    r296d22fc rfa4b12d5  
    130130        }
    131131
    132         if ((err = hc_get_ep0_max_packet_size(&ep0_desc.endpoint.max_packet_size, dev->bus, dev)))
     132        if ((err = hc_get_ep0_max_packet_size(&ep0_desc.endpoint.max_packet_size, dev)))
    133133                goto err_address;
    134134
  • uspace/lib/usbhost/src/utility.c

    r296d22fc rfa4b12d5  
    7575 * @return Max packet size for EP 0 (in bytes)
    7676 */
    77 int hc_get_ep0_max_packet_size(uint16_t *mps, bus_t *bus, device_t *dev)
     77int hc_get_ep0_max_packet_size(uint16_t *mps, device_t *dev)
    7878{
    7979        assert(mps);
Note: See TracChangeset for help on using the changeset viewer.