Changeset ae3a941 in mainline for uspace/lib/usbhost/src


Ignore:
Timestamp:
2018-02-26T16:51:40Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e773f58
Parents:
3692678
Message:

usb: cstyle

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

Legend:

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

    r3692678 rae3a941  
    7373         * transaction, but I did not find text in USB spec to confirm this */
    7474        /* NOTE: All data packets will be considered to be max_packet_size */
    75         switch (ep->device->speed)
    76         {
     75        switch (ep->device->speed) {
    7776        case USB_SPEED_LOW:
    7877                assert(type == USB_TRANSFER_INTERRUPT);
     
    143142        case USB_SPEED_LOW:
    144143                if (ep->direction == USB_DIRECTION_IN)
    145                         return 64060 + (2 * hub_ls_setup) + (677 * base_time) + host_delay;
     144                        return 64060 + (2 * hub_ls_setup) +
     145                                (677 * base_time) + host_delay;
    146146                else
    147                         return 64107 + (2 * hub_ls_setup) + (667 * base_time) + host_delay;
     147                        return 64107 + (2 * hub_ls_setup) +
     148                                (667 * base_time) + host_delay;
    148149
    149150        case USB_SPEED_FULL:
  • uspace/lib/usbhost/src/hcd.c

    r3692678 rae3a941  
    155155 * @return Negative error code.
    156156 */
    157 static errno_t hcd_ddf_setup_interrupts(hc_device_t *hcd, const hw_res_list_parsed_t *hw_res)
     157static errno_t hcd_ddf_setup_interrupts(hc_device_t *hcd,
     158    const hw_res_list_parsed_t *hw_res)
    158159{
    159160        assert(hcd);
    160         irq_code_t irq_code = {0};
     161        irq_code_t irq_code = { 0 };
    161162
    162163        if (!hc_driver->irq_code_gen)
     
    174175        /* Register handler to avoid interrupt lockup */
    175176        int irq_cap;
    176         ret = register_interrupt_handler(hcd->ddf_dev, irq, irq_handler, &irq_code, &irq_cap);
     177        ret = register_interrupt_handler(hcd->ddf_dev, irq, irq_handler,
     178            &irq_code, &irq_cap);
    177179        irq_code_clean(&irq_code);
    178180        if (ret != EOK) {
     
    212214
    213215        if (!hc_driver->hc_add) {
    214                 usb_log_error("Driver '%s' does not support adding devices.", hc_driver->name);
     216                usb_log_error("Driver '%s' does not support adding devices.",
     217                    hc_driver->name);
    215218                return ENOTSUP;
    216219        }
     
    292295
    293296        usb_log_info("Controlling new `%s' device `%s'.",
    294            hc_driver->name, ddf_dev_get_name(device));
     297            hc_driver->name, ddf_dev_get_name(device));
    295298        return EOK;
    296299
Note: See TracChangeset for help on using the changeset viewer.