Changeset 58563585 in mainline for uspace/lib/usbdev/src/devpoll.c


Ignore:
Timestamp:
2016-08-31T11:15:39Z (8 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
10cb47e
Parents:
7a67416
Message:

code review and cstyle cleanup (no change in functionality)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/src/devpoll.c

    r7a67416 r58563585  
    3333 * USB device driver framework - automatic interrupt polling.
    3434 */
     35
    3536#include <usb/dev/device.h>
    3637#include <usb/dev/pipes.h>
     
    8586
    8687        if (params->debug > 0) {
    87                 const usb_endpoint_mapping_t *mapping
    88                     = data->polling_mapping;
     88                const usb_endpoint_mapping_t *mapping =
     89                    data->polling_mapping;
    8990                usb_log_debug("Poll (%p): started polling of `%s' - " \
    9091                    "interface %d (%s,%d,%d), %zuB/%zu.\n",
     
    154155
    155156                /* Take a rest before next request. */
    156                 //TODO: This is broken, the time is in ms not us.
     157               
     158                // FIXME TODO: This is broken, the time is in ms not us.
    157159                // but first we need to fix drivers to actually stop using this,
    158                 // since polling dealy should be implemented in HC schedule
     160                // since polling delay should be implemented in HC schedule
    159161                async_usleep(params->delay);
    160162        }
     
    213215        if (request_size == 0)
    214216                return EINVAL;
    215 
     217       
    216218        if (!epm || (epm->pipe.transfer_type != USB_TRANSFER_INTERRUPT) ||
    217219            (epm->pipe.direction != USB_DIRECTION_IN))
    218220                return EINVAL;
    219 
     221       
    220222
    221223        polling_data_t *polling_data = malloc(sizeof(polling_data_t));
Note: See TracChangeset for help on using the changeset viewer.