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

Changeset bb655da in mainline


Ignore:
Timestamp:
2018-01-28T23:43:15Z (4 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial
Children:
4c3fef4
Parents:
89c7d7d
Message:

usb: transfer type no longer needed for pipe initialization

Location:
uspace/lib/usbdev
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/include/usb/dev/pipes.h

    r89c7d7d rbb655da  
    9898} usb_endpoint_mapping_t;
    9999
    100 int usb_pipe_initialize(usb_pipe_t *, usb_dev_session_t *, usb_transfer_type_t);
     100int usb_pipe_initialize(usb_pipe_t *, usb_dev_session_t *);
    101101int usb_pipe_initialize_default_control(usb_pipe_t *, usb_dev_session_t *);
    102102
  • uspace/lib/usbdev/src/pipes.c

    r89c7d7d rbb655da  
    238238 * @return Error code.
    239239 */
    240 int usb_pipe_initialize(usb_pipe_t *pipe, usb_dev_session_t *bus_session, usb_transfer_type_t transfer_type)
     240int usb_pipe_initialize(usb_pipe_t *pipe, usb_dev_session_t *bus_session)
    241241{
    242242        assert(pipe);
     
    265265int usb_pipe_initialize_default_control(usb_pipe_t *pipe, usb_dev_session_t *bus_session)
    266266{
    267         const int ret = usb_pipe_initialize(pipe, bus_session, USB_TRANSFER_CONTROL);
     267        const int ret = usb_pipe_initialize(pipe, bus_session);
    268268        if (ret)
    269269                return ret;
  • uspace/lib/usbdev/src/pipesinit.c

    r89c7d7d rbb655da  
    200200        }
    201201
    202         int err = usb_pipe_initialize(&ep_mapping->pipe, bus_session, description.transfer_type);
     202        int err = usb_pipe_initialize(&ep_mapping->pipe, bus_session);
    203203        if (err)
    204204                return err;
Note: See TracChangeset for help on using the changeset viewer.