Changeset 3bacee1 in mainline for uspace/lib/usbhost/src


Ignore:
Timestamp:
2018-04-12T16:27:17Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3cf22f9
Parents:
76d0981d
git-author:
Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
git-committer:
Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
Message:

Make ccheck-fix again and commit more good files.

Location:
uspace/lib/usbhost/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/bandwidth.c

    r76d0981d r3bacee1  
    6262
    6363        /* We care about bandwidth only for interrupt and isochronous. */
    64         if ((type != USB_TRANSFER_INTERRUPT)
    65             && (type != USB_TRANSFER_ISOCHRONOUS)) {
     64        if ((type != USB_TRANSFER_INTERRUPT) &&
     65            (type != USB_TRANSFER_ISOCHRONOUS)) {
    6666                return 0;
    6767        }
     
    127127
    128128        /* We care about bandwidth only for interrupt and isochronous. */
    129         if ((type != USB_TRANSFER_INTERRUPT)
    130             && (type != USB_TRANSFER_ISOCHRONOUS)) {
     129        if ((type != USB_TRANSFER_INTERRUPT) &&
     130            (type != USB_TRANSFER_ISOCHRONOUS)) {
    131131                return 0;
    132132        }
     
    143143                if (ep->direction == USB_DIRECTION_IN)
    144144                        return 64060 + (2 * hub_ls_setup) +
    145                                 (677 * base_time) + host_delay;
     145                            (677 * base_time) + host_delay;
    146146                else
    147147                        return 64107 + (2 * hub_ls_setup) +
    148                                 (667 * base_time) + host_delay;
     148                            (667 * base_time) + host_delay;
    149149
    150150        case USB_SPEED_FULL:
  • uspace/lib/usbhost/src/endpoint.c

    r76d0981d r3bacee1  
    225225        }
    226226
    227         device_t * const device = ep->device;
     227        device_t *const device = ep->device;
    228228        if (!device) {
    229229                usb_log_warning("Endpoint detached");
     
    243243         */
    244244        if (size > ep->max_transfer_size &&
    245             (ep->transfer_type == USB_TRANSFER_INTERRUPT
    246              || ep->transfer_type == USB_TRANSFER_ISOCHRONOUS)) {
     245            (ep->transfer_type == USB_TRANSFER_INTERRUPT ||
     246            ep->transfer_type == USB_TRANSFER_ISOCHRONOUS)) {
    247247                if (req->dir == USB_DIRECTION_OUT)
    248248                        return ENOSPC;
Note: See TracChangeset for help on using the changeset viewer.